I'm having trouble working with the $ routeProvider of Angular.js , I have a link on a menu in which it will be mapped via route , and will later call an action in Spring , but it does not work. It always returns me 404 and I have already changed the url in all possible ways and it still does not work.
Below is the HTML link, as well as the configuration of my provider :
<li>
<a class="tooltip-tip ajax-load" href="#" title="Clientes"><i class="entypo-user"></i><span>Clientes</span></a>
<ul>
<li><a class="tooltip-tip2 ajax-load" href="${pageContext.request.contextPath}/auth/#/customer" title="Novo Cliente"><i class="entypo-newspaper"></i><span>Novo Cliente</span></a></li>
</ul>
</li>
var app = angular.module('customer', []);
app.config(function($routeProvider, $locationProvider){
console.log('Acesso a Configuração do RouteProvider.');
$routeProvider.when('/customer', {
templateUrl: '/auth/customer',
controller: 'customerController'
}).otherwise({
redirectTo: '/customer'
});
});