Skip to content

Daniele Ghidoli

Angular Tips & Tricks

  • About me
  • My Nomad Life

Category: Bugs

Why my Angular service doesn’t return the assigned value?
Posted on October 29, 2020October 29, 2020

Why my Angular service doesn’t return the assigned value?

Sometimes it can happen that you assign a value on a service‘s property in your Angular app from a component and, when you try to get that value from a different component, it just returns undefined or the default value in your constructor! How can this be possible, if you just set it? There may … Continue reading Why my Angular service doesn’t return the assigned value?

Menu

  • About me
  • My Nomad Life
  • Twitter
  • Github
  • Facebook
  • Instagram
  • Linkedin
  • Medium

Search a post

Categories

  • Bugs
  • i18n
  • RxJS
  • Testing

Most viewed

  • Angular: How to prevent duplicated HTTP requests
  • Testing an Angular Component with Mock Services
  • Combining multiple Http streams with RxJS Observables in Angular
  • How to subscribe to RxJS event after it has been already emitted
  • When should I unsubscribe from an Observable in Angular?
  • Why my Angular service doesn't return the assigned value?
  • How to load an Angular app just after the user is logged
  • Angular 2 internationalization explained: i18n + Angular CLI + AOT

Follow me on Twitter

My Tweets
© Daniele Ghidoli