File

test/fixtures/sample-files-extends/src/app/app.component.ts

Description

The main component

Extends

AnotherComponent

Metadata

Index

Properties
Methods
Inputs
Outputs

Inputs

internalLabel
Type : string
itisme
Type : string
Inherited from AnotherComponent

Outputs

myoutput
Inherited from AnotherComponent

Methods

ngOnInit
ngOnInit()
Inherited from AnotherComponent
Returns : void

Properties

Public myprop
Inherited from AnotherComponent
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>
    &nbsp;|&nbsp;
    <a routerLink="/about" routerLinkActive="active">About</a>
</p>

./app.component.css

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""