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

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

Leela Web Dev

Leela Web Dev

Күн бұрын

Hi Friends
In this video, we will see how to load services differently for instances in the lazy loaded modules and app modules in the angular.
The code is deployed in my Github account.
github.com/lee...
If you like my video, please subscribe to my channel.
KZbin Page: / leelawebdev
Facebook Page: / leelawebdev
Twitter Page: / leelanarsimha
Linkedin: / leela-narasimha-reddy-...
GitHub: github.com/lee...
#Angular #leelawebdev

Пікірлер: 10
@sandipshirsale3019
@sandipshirsale3019 2 жыл бұрын
Great one But not able to understand why it's behving differently compare to core Module and shared module?
@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
@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
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 5 МЛН
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 116 МЛН
Apple peeling hack @scottsreality
00:37
_vector_
Рет қаралды 127 МЛН
АЗАРТНИК 4 |СЕЗОН 2 Серия
31:45
Inter Production
Рет қаралды 1,1 МЛН
Angular Dependency Injection and Lazy Loaded Modules
7:30
Juri Strumpflohner
Рет қаралды 3,1 М.
"I Hate Agile!" | Allen Holub On Why He Thinks Agile And Scrum Are Broken
8:33
Angular tutorial # Lazy Loading
13:08
Code Step By Step
Рет қаралды 84 М.
Angular Services Explained - Sharing Data Between Components
19:25
Monsterlessons Academy
Рет қаралды 10 М.
Top 6 React Hook Mistakes Beginners Make
21:18
Web Dev Simplified
Рет қаралды 572 М.
Поветкин заставил себя уважать!
01:00
МИНУС БАЛЛ
Рет қаралды 5 МЛН