Angular Dynamic Component Loading - ngComponentOutlet

Publié le: 17 juillet 2021
sur la chaîne: JS Frameworks
9,825
147

Angular 12 tutorial - Dynamic Component Loading - We explore how we can create a dynamic angular component using ComponentFactoryResolver and ViewContainerRef.createComponent(). Also we check how we can reuse the created Component view using ComponentFactory.create() and ViewContainerRef.insert()/detach(). We then try out the various options available in the structural directive ngComponentOutlet, including custom Injectors, content projection and custom ngModuleFactory.

Github url - https://github.com/anuroopjoy/dynamic...

00:00 - Introduction
00:29 - ViewContainerRef.createComponent
05:16 - ComponentFactory.create()
08:26 - ngComponentOutlet
11:41 - custom Injector in ngComponentOutlet
14:47 - content projection in ngComponentOutlet
18:03 - custom ngModuleFactory in ngComponentOutlet


Sur cette page du site, vous pouvez voir la vidéo en ligne Angular Dynamic Component Loading - ngComponentOutlet durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur JS Frameworks 17 juillet 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,825 fois et il a aimé 147 téléspectateurs. Bon visionnage!