26 lines
525 B
TypeScript
26 lines
525 B
TypeScript
|
// #docplaster
|
||
|
// #docregion
|
||
|
// #docregion v1
|
||
|
import { Component, Input } from '@angular/core';
|
||
|
// #enddocregion v1
|
||
|
import { UserService } from './user.service';
|
||
|
// #docregion v1
|
||
|
|
||
|
@Component({
|
||
|
moduleId: module.id,
|
||
|
selector: 'app-title',
|
||
|
templateUrl: 'title.component.html',
|
||
|
})
|
||
|
export class TitleComponent {
|
||
|
@Input() subtitle = '';
|
||
|
title = 'Angular Modules';
|
||
|
// #enddocregion v1
|
||
|
user = '';
|
||
|
|
||
|
constructor(userService: UserService) {
|
||
|
this.user = userService.userName;
|
||
|
}
|
||
|
// #docregion v1
|
||
|
}
|
||
|
// #enddocregion v1
|