Angular tutorial # Lazy Loading component

preview_player
Показать описание
in this Angular 10 tutorial, how to make lazy loading component and how to use it in angular. This video is made by anil Sidhu in the English language

Points of video
Lazy loading Component
Make two Components
make 2 buttons for loading Component
Write Component loading function
Angular 12 tutorial


Angular 10 tutorial playlist

Angular 10 tutorial in Hindi playlist

Checkout all course an playlist
Info tech video by bhasker verma
Рекомендации по теме
Комментарии
Автор

Checkout all course an playlist
Info tech video by bhasker verma

codestepbystep
Автор

Superb, can u explain module level lazy loading?

vaishalir
Автор

We can prove that the components are lazy loading by checking the network. On button click the components will load in network.

vitalvisionsU
Автор

Great Explanation, Can you please provide source code of this tutorial ?

hemalimakodiya
Автор

Thanks but after V13
no need "componentFactoryResolver"
we can do like this
constructor(private vcr: ViewContainerRef) {}

loadAdmin() {

}

loadUser() {

}
happy coding😊

hamzaakbar
Автор

Hello!
In the previous video, to demonstrate that modules were being "lazy loaded", you put the console.warn("") above the @Module decorator. In this tutorial, I did the same, but above the @Component decorator instead.

The behaviour observed was that the warning was still shown at runtime. Does this mean the component was still being run?

The solution I found was to remove the declaration in the app.module.ts file, since that declaration is created by default. After that, the console only outputted the warning when I pressed the button.

Can you explain this behaviour?

HexArtificer
Автор

Can I apply lazy loading on module and components at same time?

riturajdj
Автор

Hi,
Why we need to clear the container first?

saumyadip
Автор

Without router-outlet how and using which dom element that component HTML is running sir

vigneshkarthik
Автор

what work is that createcomponent() function is doing inside load admin and load user function...anyone knows it? please explain

chandukanth
visit shbcf.ru