Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • try saving these value in localstorage of the browser. First check localstorage if values did'nt exist make a call to server else retrieve it from localstorage and use it Commented Jan 9, 2017 at 15:28
  • You can. Here is the link: syntaxsuccess.com/viewarticle/… Commented Jan 9, 2017 at 15:28
  • @rashfmnb I would prefer a rxjs solution. Commented Jan 9, 2017 at 17:01
  • @IgorJanković I read the link you shared and tried implementing it in my code. But it doesn't work. I still see 2 network requests being made in the browser as opposed to one. Commented Jan 9, 2017 at 17:01
  • check this answer stackoverflow.com/questions/36271899/… Commented Jan 9, 2017 at 17:57