Angular tutorial # Lazy Loading component

  Рет қаралды 25,082

Code Step By Step

Code Step By Step

Күн бұрын

Пікірлер: 15
@codestepbystep
@codestepbystep 4 жыл бұрын
Checkout all course an playlist kzbin.infoplaylists Info tech video by bhasker verma kzbin.info/aero/PL8p2I9GklV468k-2RCQiJsay_1CO5U-ok
@mayurdhumal01
@mayurdhumal01 4 жыл бұрын
Very interesting, simple to understand your all videos of this angular 10. Thank bro
@nihadkv303
@nihadkv303 4 жыл бұрын
helpful video😍😍😍
@vaishalir7323
@vaishalir7323 3 жыл бұрын
Superb ,can u explain module level lazy loading?
@HexArtificer
@HexArtificer 3 жыл бұрын
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?
@praveenez6712
@praveenez6712 3 жыл бұрын
As per the topic, we are loading the components dynamically on a button click event, If you define the component in modudle.ts file, it will load though. So you sould not load the componenet on module.ts
@HexArtificer
@HexArtificer 3 жыл бұрын
@@praveenez6712 I thought as much. Since the Module.ts wasn't modified at all post creating the components, I thought I'd check though. Thanks!
@hemalimakodiya3445
@hemalimakodiya3445 2 жыл бұрын
Great Explanation, Can you please provide source code of this tutorial ?
@saumyadip11
@saumyadip11 2 жыл бұрын
Hi, Why we need to clear the container first?
@riturajdj9661
@riturajdj9661 3 жыл бұрын
Can I apply lazy loading on module and components at same time?
@vigneshkarthik345
@vigneshkarthik345 3 жыл бұрын
Without router-outlet how and using which dom element that component HTML is running sir
@vitalvisions4U
@vitalvisions4U 3 жыл бұрын
We can prove that the components are lazy loading by checking the network. On button click the components will load in network.
@hamzaakbar5321
@hamzaakbar5321 2 жыл бұрын
Thanks but after V13 no need "componentFactoryResolver" we can do like this constructor(private vcr: ViewContainerRef) {} loadAdmin() { this.vcr.createComponent(AdminComponent); } loadUser() { this.vcr.createComponent(UserComponent); } happy coding😊
@Ra11_1
@Ra11_1 2 жыл бұрын
this was helpful bro!
@chandukanth6875
@chandukanth6875 3 жыл бұрын
what work is that createcomponent() function is doing inside load admin and load user function...anyone knows it? please explain
Angular 10 - New Feature
5:03
Code Step By Step
Рет қаралды 14 М.
Angular tutorial # Lazy Loading
13:08
Code Step By Step
Рет қаралды 86 М.
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
Angular tutorial # automation Testing | Unit Testing
9:21
Code Step By Step
Рет қаралды 16 М.
@ViewChild/@ViewChildren in Angular (Tutorial 35)
19:31
Nisha Singla
Рет қаралды 67 М.
Lazy Loading Components in Angular | Angular Tutorial
6:37
WebGentle
Рет қаралды 10 М.
NgTemplateOutlet in Angular - Everything You Have to Know (2022)
35:15
Decoded Frontend
Рет қаралды 54 М.
Lazy Loading - Angular (Tutorial #29)
10:44
Nisha Singla
Рет қаралды 35 М.
Routing and Lazy Loading with Standalone Components
11:07
Deborah Kurata
Рет қаралды 20 М.
Lazy Loading Project In Angular
29:49
LEARNING PARTNER
Рет қаралды 3,6 М.
Lazy Loading Of Component In Angular Part 01
16:48
Mighty Ghost Hack
Рет қаралды 1,9 М.
Angular 16 Tutorial - Lazy Loading Feature Modules #17
14:44
Programming with Umair
Рет қаралды 6 М.