Lazy Load a Component in Angular 9

preview_player
Показать описание
This video explains, How to lazy load a component in Angular 9. Following topics are covered in the video

1. Lazy load using import inside async-await function

2. Lazy load using import() and .then() ,method

3. ComponnetFactoryResolver and ViewContainerRef

4. Passing data and handling events from lazy-loaded component

5. Working with dependent module in lazy-loaded component

Рекомендации по теме
Комментарии
Автор

Nice tutorial...and very well explained.

MrCnm
Автор

hi do you use single-file component or would like to separate in 3 files(.html, ts, css)

ashishkpoudel
Автор

Deprecated: Angular no longer requires Component factories. Please use other APIs where Component class can be used directly

jhonatangamboa
Автор

Code looks similar to dynamic component loading(Entry components)

ajithkamath