By using the same dynamic import method the router uses and the Angular Injector, he demonstrates how to lazy load a module and renders a component in an outlet based off of any observable in your application.
Learn the best ways to build reliable web applications, write quality code, choose scalable architectures, and create effective automated tests at the Reliable Web Summit this August 26-27, 2021. Powered by the team at ng-conf.
Get your ticket 👉 https://reliablewebsummit.com/
Follow us on twitter https://twitter.com/ngconf
Official Website: https://www.ng-conf.org/