I want to implement small angular 5 application which can be loaded in one of the div on the aspx web page. I am looking for some guidelines/sample implementation for the same. Let me know if you can guide me to correct implementation.
What I have done so far -
1. Created a sample Angular app using Angular CLI
-> ng new my-project
2. Created new ASP.Net Application using Visual Studio. (In reality this is exsiting production application, I do not have choice to change this much)
3. Now I want to inject the Angular app created in step 1, under new div element in header of Master page i.e. Site.Master page -
<div style="height:200px;width:200px;">
<app-root></app-root>
</div>
4. I copied the "dist" folder from angular app created from step 1 into the ASP.Net Application
5. I added below javascript references in the Site.Master page -
<link rel="stylesheet" href="Scripts\dist\styles.e126e9be62c6ec7bbe7a.bundle.css">
<script type="text/javascript" src="Scripts\dist\inline.c2cb6d48ecf795001683.bundle.js"></script>
<script type="text/javascript" src="Scripts\dist\polyfills.e2849426e0e249e7e4c2.bundle.js"></script>
<script type="text/javascript" src="Scripts\dist\vendor.d5313318b7c6a324c5a8.bundle.js"></script>
<script type="text/javascript" src="Scripts\dist\main.c802be7b400789c4e980.bundle.js"></script>
Questions :-
1. Is this right approach?
2. I keep getting the Zone.js browser errors because it looks like default ASP.Net application refers Zone javascript and so does the default angular app
3. What would be potential issues that I would face if I build this as enterprise level application?
4. What will happen if I have same Javascript library referred in aspx and in angular app?