I just understood why this.dataSource is uninitialized. It's because there's no subscription yet. So I thing I'm doing it wrong. Could someone tell me how to generate an observer without using Subject (which seems to be a bad practice).
I created a new plunkr <http://plnkr.co/edit/iamWV1t7AFcd7RnbUrCB?p=preview>, in this one I have a component which subscribe to the observable, but I can show/hide the component (with ngIf). I don't understand why when the component is recreated, the subscription does not retrieve automatically the last data ? I though Observable should behave like promises, once already resolved the last value is automatically retrieve on any new subscriptions. Thanks. -- 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.
