I have built a new Angular7 application and locally angular application is working fine. Now I need to launch my angular application from the existing legacy web application which is build on Java/JSP. In the existing legacy application, I have a URL. On click of that URL, angular application should open.
But whenever I am hitting the URL, seems like routing is not happening properly to angular app.
Local angular application is running successfully on - http://localhost:4200/alerts;alerttype=renewals;cor=411119
What I did so far, I have copied the angular dist folder to the webcontent folder of legacy application and running the application as below
http://localhost:9086/customer/eWeb/AlertApp/alerts;alerttype=renewals;cor=411119
app.routing.module.ts
const routes: Routes = [
{ path: 'alerts', component: AlertsComponent },
{ path: 'customer/eWeb/AlertApp/alerts', component: AlertsComponent
},
];
Can anyone help and tell how to launch the angular application from the legacy application? what all routing needs to be configured?
Thanks in advance.