6
Answers

Angular 7 Service

Karthikeyan K

Karthikeyan K

6y
855
1
Hi All,
 
Any one can explain why my service instance is created only once ,  i have implemented eagar and lazy loading with netesd routing , i have injected the service all the components but still its taking the same instance .  i have given my stackblitz link below  kindly anyone have a look .
 
i want to check why lazy-loaded module taking same service instance.
https://stackblitz.com/edit/angular-drtk4e 
Answers (6)