18 lines
456 B
TypeScript
Raw Normal View History

2016-07-12 18:14:13 -07:00
// Exact copy of app/title.component.ts except import UserService from shared
import { Component, Input } from '@angular/core';
import { UserService } from './user.service';
@Component({
selector: 'app-title',
templateUrl: 'app/shared/title.component.html',
2016-07-12 18:14:13 -07:00
})
export class TitleComponent {
@Input() subtitle = '';
title = 'Angular Modules';
user = '';
constructor(userService: UserService) {
this.user = userService.userName;
}
}