I am new to Angular2 Wep app development.
I created one Angular2 app with use of angular-cli, now i want to deploy this app to my tomcat server.
I gave ng build and it create the dist folder for deployment. I copied all files inside the dist folder and create one folder inside the Tomcat webapps folder like somename and paste all files inside this somename folder. And i changed the index.html base href as /somename.
<base href="/somename">
if i run the app from server like localhost:9000/somename. it gives the error in console like file not error.
How can i solve the issue.
please help me, thanks in advance.
HashLocationStrategy? (imports: [RouterModule.forRoot(myRoutes, {useHash: true})])?