25 lines
506 B
TypeScript
Raw Normal View History

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