DEV Community

loading...

Discussion on: Angular 9: Lazy Loading Components

Collapse
layzee profile image
Lars Gyrup Brink Nielsen • Edited

Another way to switch from an imperative approach to a declarative approach is to use *ngComponentOutlet instead of ViewContainerRef#createComponent.