All Questions
Tagged with angular-dependency-injection angular9
3 questions
2
votes
2
answers
8k
views
Angular 9 - how to inject dynamic parameters into a service constructor
I need to make requests to a backend url which comes in this form:
localhost:8000/myapp/item1/:id1/item2/:id2/item3
where id1 and id2 are dynamic numbers.
I've thought using a service that takes 2 ...
9
votes
1
answer
3k
views
Inject a service from a main project into a created library
I working with Angular 8.
This question is only for Angular DI experts.
At first, I made an Angular library that will be reused in many project.
In this Library, I made an abstract service, that ...
3
votes
1
answer
2k
views
How to use provideIn: 'platform' in angular 9
I have been reading the angular 9 documentation, and it states you can use the provideIn: 'platform' to share a singleton service across two angular applications, but I was not able to find a good ...