src/app/shared/components/empty-parent-component.ts
Empty parent component for inheritance demo
OnInit
selector | empty-parent |
template |
|
Properties |
|
Methods |
Inputs |
Outputs |
parentInput | |
Type : string
|
|
parentoutput | |
ngOnInit |
ngOnInit()
|
Returns :
void
|
Public parentProperty |
import { Component, Input, Output, OnInit } from '@angular/core';
/**
* Empty parent component for inheritance demo
*/
@Component({
selector: 'empty-parent',
template: 'empty parent'
})
export class EmptyParentComponent implements OnInit {
@Input() public parentInput: string;
@Output() public parentoutput;
public parentProperty;
ngOnInit() {}
}