All Questions
Tagged with angular2 dependency-injection
3 questions
2
votes
1
answer
2k
views
At what point is having a static class with utility methods better than having an injectable service?
I have a pretty general question about the design of Angular web applications. I'm a big fan of writing services. Sometimes I write services that have only utility methods that don't require state at ...
0
votes
1
answer
637
views
Angular 2+ Providers/Service on Parent or Child component?
I have recently started diving deeper into Angular 7 (with Ionic 3) and I have written a lot of code so far, and I have child & parent component relationships - but never like this before. I am ...
1
vote
2
answers
583
views
Angular 7 - Injecting a State/Context Snapshot
Requirement
There is some (for arguments sake) “global” application state that I am interested in injecting into components.
Each candidate component should receive an immutable snapshot of the ...