The example below shows an Observable
input into a child component, as its a stream that can change you need to subscribe to those changes and use a change detector to update the template.
If possible rather do the subscription in the parent component and input the data. Example @Input() public inputType: IInputType;
child.component
1 | child.component.ts |
1 | child.component.html |