Tag: dynamic component
-
How to Lazy and Dynamically Load a Component in Angular
There are three ways you can use a component in an Angular app. However, this article focuses on loading a component dynamically and lazily. The main advantage of lazily loading a component is reducing the initial bundle size and only downloading the component in the browser when required. Let us say that you have a…