var: Declare a variable, value initialization optional. Can re-declared and re-initialize. let: Declare a local variable with block scope, value initialization optional. Can re-initialize but…
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…