132. Loading Services Differently for instances in the Lazy Loaded Modules and app Modules - Angular

  Рет қаралды 3,712

Leela Web Dev

Leela Web Dev

Күн бұрын

Пікірлер: 10
@vipinsharma-zx9cb
@vipinsharma-zx9cb 3 жыл бұрын
I think if we use any shared module or core module (containing providers) in side a lazily loaded module then it will use seperate instance, so best it to use via app module
@sandipshirsale3019
@sandipshirsale3019 2 жыл бұрын
Great one But not able to understand why it's behving differently compare to core Module and shared module?
@gauravkochhar2471
@gauravkochhar2471 3 жыл бұрын
cool sir...really nice
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Thank you
@ankitshah2270
@ankitshah2270 2 жыл бұрын
Hello sir, how we can share the data between two component of diffrent module in lazy loading? I don't want to use "root" shared service for that. Is there any other way to do that?
@LeelaWebDev
@LeelaWebDev 2 жыл бұрын
create a shared module and import that shared module in both different modules
@veeramanikantapinnana423
@veeramanikantapinnana423 3 жыл бұрын
Sir what will happen if we inject the service in both module and also in component
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
Nice question. Try once by doing like that . Practicing raises doubts. Let me know in comment by trying
@veeramanikantapinnana423
@veeramanikantapinnana423 3 жыл бұрын
@@LeelaWebDev It will create another instance for that component is it right..??
@LeelaWebDev
@LeelaWebDev 3 жыл бұрын
@@veeramanikantapinnana423 yes
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 79 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 36 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
Angular Dependency Injection and Lazy Loaded Modules
7:30
Juri Strumpflohner
Рет қаралды 3,2 М.
Everything You Need to Know About Angular Services and Beyond |  In-depth tutorial
16:03
Technical Babaji (Tarique Akhtar)
Рет қаралды 7 М.
Angular dependency injection in depth -  Dependency providers (2021)
17:19
Lazy loading in angular
10:48
kudvenkat
Рет қаралды 135 М.
The IMPOSSIBLE Puzzle..
00:55
Stokes Twins
Рет қаралды 79 МЛН