Checkout all course an playlist kzbin.infoplaylists Info tech video by bhasker verma kzbin.info/aero/PL8p2I9GklV468k-2RCQiJsay_1CO5U-ok
@mayurdhumal014 жыл бұрын
Very interesting, simple to understand your all videos of this angular 10. Thank bro
@nihadkv3034 жыл бұрын
helpful video😍😍😍
@vaishalir73233 жыл бұрын
Superb ,can u explain module level lazy loading?
@HexArtificer3 жыл бұрын
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?
@praveenez67123 жыл бұрын
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
@HexArtificer3 жыл бұрын
@@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!
@hemalimakodiya34452 жыл бұрын
Great Explanation, Can you please provide source code of this tutorial ?
@saumyadip112 жыл бұрын
Hi, Why we need to clear the container first?
@riturajdj96613 жыл бұрын
Can I apply lazy loading on module and components at same time?
@vigneshkarthik3453 жыл бұрын
Without router-outlet how and using which dom element that component HTML is running sir
@vitalvisions4U3 жыл бұрын
We can prove that the components are lazy loading by checking the network. On button click the components will load in network.
@hamzaakbar53212 жыл бұрын
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_12 жыл бұрын
this was helpful bro!
@chandukanth68753 жыл бұрын
what work is that createcomponent() function is doing inside load admin and load user function...anyone knows it? please explain