3 ms·
> It absolutely is not difficult to share state across Angular controllers. Services work great for this. From what I saw in the last Angular app I worked on,
by wwweston 11y ago
> It absolutely is not difficult to share state across Angular controllers. Services work great for this.
From what I saw in the last Angular app I worked on, the ideas that services can work for this and that things can get difficult fast when sharing state across controllers aren't at odds.
- thoman23 11y agoHmm, shared state in and of itself can certainly cause difficulties (hence the recent focus on immutability and FRP), so I agree with what you are saying. However, if you are going to have shared state, I find the Angular service singleton approach as good a way to handle it as any.