test/fixtures/sample-files-extends/src/app/app.component.ts
The main component
selector | app-root |
styleUrls | ./app.component.css |
templateUrl | ./app.component.html |
Properties |
|
Methods |
Inputs |
Outputs |
internalLabel | |
Type : string
|
|
itisme | |
Type : string
|
|
Inherited from
AnotherComponent
|
|
Defined in
AnotherComponent:13
|
myoutput | |
Inherited from
AnotherComponent
|
|
Defined in
AnotherComponent:15
|
ngOnInit |
ngOnInit()
|
Inherited from
AnotherComponent
|
Defined in
AnotherComponent:19
|
Returns :
void
|
Public myprop |
Inherited from
AnotherComponent
|
Defined in
AnotherComponent:17
|
import { Component, Input, OnInit } from '@angular/core';
import { InputBase } from './input-base';
import { AnotherComponent } from './another-component.component';
/**
* The main component
*/
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent extends AnotherComponent {
@Input() public internalLabel: string;
}
<router-outlet></router-outlet>
<p class="info links">
<a routerLink="/" routerLinkActive="active">Home</a>
|
<a routerLink="/about" routerLinkActive="active">About</a>
</p>
./app.component.css