How should i deploy my Angularjs code on tomcat 8.5
I have tried copying my project folder to webapps folder in tomcat
My project structure
webapps
myprojectname
controllers
css
views
route.js
index.html
config.js
route.js file
angular.module("testroutes",["ngRoute"]).config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {templateUrl: 'views/home.html'}).
when('/home', {templateUrl: 'views/home.html',controller: 'homecontroller'}). otherwise({redirectTo: '/'});
}]);
tomcat has started to run all my controllers, html are loading but routing is not working.
localhost:8080/myprojectname/home --> gives me 404
only localhost:8080/myprojectname/ --> this works. which is loading index.html
my routing is not working. could someone help