I have a requirement to add a dynamic component to the Angular application. The idea is to bundle the component in one JavaScript file which will be downloaded on some condition.
The whole idea is to ship independent components(features) as and when they are ready. They should work with application seamlessly without recompiling the main application.
I did look at https://angular.io/guide/dynamic-component-loader. But the example compiles the dynamic component along with the solution which I won't be able to do.
Any idea how I can achieve this?