Angular Dynamically Loading Components #05

Опубликовано: 03 Февраль 2025
на канале: Ajinkya X
24,401
328

Create Angular Web Application - Learn Angular Step by Step #05
FULL PLAYLIST:    • Learn Angular Step-by-step  

source CODE: https://github.com/steelx/blogapp/com...


Dynamically / Programmatically create components with Angular 4.

Why would I ever want to dynamically create a component?
Or Why someone would want to Lazy load Angular components ?

-- Imagine throughout your app you have buttons that trigger different modals to open
-- Some of these modals need to be initialized with some information for their state
-- And as we know, modals are best kept as children of the body tag to avoid issues.

And we will learn about Angular lifecycle method "ngAfterContentInit"


Components Communication:    • Angular 2 Parent-Child Data Communica...  


This video is part of my Learn Angular Step by Step series:
   • Learn Angular Step-by-step  

Please don't forget to like and subscribe to my videos.



Music:
Tokyo Machine - FIGHT [Monstercat Release]:
   • Tokyo Machine - FIGHT [Monstercat Rel...