I\'ve developed a Spring maven rest api for my project. For the client side, I\'m using Angular2 with typescript. As new to Angular, referred angular website for the development
At last used angular-cli. ng build --prod creates a production ready build. Copied index.html and .js files under project folder in tomcat webapps (Or under Webcontent in eclipse).
Edited index.html as <base href = "."> and it worked fine