The child component exposes an EventEmitter property with which it emits events when something happens. The parent binds to that event property and reacts to…
We can detect and act upon changes to input property values with the ngOnChanges() method of the OnChanges interface. Child component: src/app/child/child.component.html src/app/child/child.component.css src/app/child/child.component.ts Parent…