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
In questa pagina del sito puoi guardare il video online Angular Dynamic Component Loading - ngComponentOutlet della durata di ore minuti seconda in buona qualità , che l'utente ha caricato JS Frameworks 17 luglio 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 9,825 volte e gli è piaciuto 147 spettatori. Buona visione!