I'm Trying detect changes on child of variable, but ngOnChanges not firing when variable change
@Input() _parent: any;
ngOnChanges(changes: {[propKey: string] : SimpleChange}) { << not fire
console.log('Change detected:');
setTimeout(() => {
if (!_.isEqual(this._parent.curScript, changes['_parent'].currentValue.curScript)) {
console.log(1);
}
}, 100);
}
What's my problem?