projects/Hello02/src/app/app.component.ts
selector | app-root |
styleUrls | ./app.component.scss |
templateUrl | ./app.component.html |
Properties |
title |
Type : string
|
Default value : 'Hello02'
|
Defined in projects/Hello02/src/app/app.component.ts:9
|
import { Component } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'Hello02';
}
---Hello02---
<lib-title message="Hello App02">
</lib-title>
<a routerLink="detail">show me the service</a>
<a routerLink="detail02">show me the service on in second module</a>
<a routerLink="detail03">show me the service on in third module</a>
<router-outlet></router-outlet>
./app.component.scss
a {
display: block;
}