You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Host component declares <ng-template> with ColorBoxComponent as the dynamic-component with inputs and outputs.
Clicking on Change Color button will invoke ngOnChanges of ColorBoxComponent, just as it should be.
Try to change the input name and you'll see an exception thrown in the console.
Time to try it out.
Here's a simple component that displays a color based on input and emits an event when it changes.
Host component declares
<ng-template>
withColorBoxComponent
as thedynamic-component
with inputs and outputs.Clicking on Change Color button will invoke
ngOnChanges
ofColorBoxComponent
, just as it should be.Try to change the input name and you'll see an exception thrown in the console.
The text was updated successfully, but these errors were encountered: