Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

integrate an angular 6 application into an existing HTML site as a simple JS file

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

like image 578
user3548905 Avatar asked Jun 12 '18 11:06

user3548905


1 Answers

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.

like image 150
Nick Avatar answered Oct 21 '22 22:10

Nick