Life cycle
Components have a well-defined life cycle, which you can tap into. TalkCmp
does not subscribe to any life cycle events, but some other components can. For instance, this component will be notified when its input properties change.
@Component({ selector: 'cares-about-changes' }) class CaresAboutChanges implements OnChanges { @Input() field1; @Input() field2; ngOnChanges(changes) { //.. } }