Consider this plunker
import {Component, OnInit, Input, OnChanges, DoCheck, ChangeDetectionStrategy, EventEmitter} from \'angular2/core\'
@Component({
sel
I know it has been a while, but i came across a similar problem. Hence i wanted to stress on the fact that OnPush
does not always change the way parent and child component communication works. If the child component's @Input
property is an object (reference type) then the only way OnChanges
is triggered on the child is when the reference changes (new object is created) regardless of OnPush
. OnPush
makes more sense for template binding, requesting angular to do value equality
or just compare references.
Please do correct me if i was wrong.