Further improvements – turning TaskService into a stateful, more robust service 

RxJS and Observables didn't arrive just to be a one-to-one match to Promises. RxJS and reactive programming arrived to promote a different kind of architecture, as well. From such an architecture emerged a store pattern suitable for services. The store pattern is about ensuring our service is stateful and can deal with data coming from more places than HTTP. The potential places where data can arrive from could be, for example:

  • HTTP
  • localStorage
  • Sockets
  • Firebase
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset