Reputation: 99
How can i add/integrate an Angular 6 application into an existing HTML site, can I include it as a single JS file ?
How can I bundle an Angular App into a single JS file ?
Thanks
Upvotes: 5
Views: 9406
Reputation: 2468
You should take a look at Angular Elements. This will allow you to generate a custom web component which you can embed into a HTML page. This tutorial has good information on how to end up with a single JS file that you can import in your HTML and then use as a custom element.
Upvotes: 5