Observable Do Not Receive The Next Value In Angular2
In order to pass value between angular2 different components, I use different services injected into different components. In my PagesService component, I define a behavior subject
Solution 1:
Which component is calling setCurrentPlaylists()
?
Most likely, some component other than PagesComponent is calling this method and that other component probably has providers: [PagesService]
defined in its metadata. This will result in two instances of PagesService
being created – one that PagesComponent provides (and injects), and another instance that some other component provides (and injects).
Post a Comment for "Observable Do Not Receive The Next Value In Angular2"