optional input in angular 2 component code example
Example: how to make input in angular optional
export class ChildComponent {
@Input() showName?: boolean;
constructor() { }
}
export class ChildComponent {
@Input() showName?: boolean;
constructor() { }
}