Angular Dynamic Component Loading - ngComponentOutlet

Опубликовано: 17 Июль 2021
на канале: 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


На этой странице сайта вы можете посмотреть видео онлайн Angular Dynamic Component Loading - ngComponentOutlet длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь JS Frameworks 17 Июль 2021, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 9,825 раз и оно понравилось 147 зрителям. Приятного просмотра!