Yeah, did you check the last section of that linked article? TL;DR: since the observable ref does not change, you need to: - inject change detector ref to your component - call changeDetector.markChanged() in that subscription callback.
Look for more details closer to the end of the article. On Wed, Jun 22, 2016 at 12:45 PM, Christophe HOARAU <[email protected]> wrote: > Hi, > > Thanks for your detailed responses. I found the problem for the > sourceData, but I still don't understand the onPush issue. According to > what I've read in several places, onPush is a good way to reduce > 'watchers'/'change detections' by considering inputs as immutable. This > match perfectly what you've said but on those same docs it was said that > onPush is also meant to be used with observable. So there must be a way to > make this work with observable no ? > Even the link you've provided talks about this, but does not explain how > to implement it with observable. > > > Thanks. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "AngularJS" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/angular/M-Zbr14-j0o/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Zlatko -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
