I'm in my root index.html and it loads normal, but when I type the # plus the / and a view for example the test url view is: strong> index.html #! #% 2Fview-test . I would like to know what!
Follow the route code:
angular.module('teste').config(['$routeProvider', '$locationProvider'],
function($routeProvider, $locationProvider){
$locationProvider.html5Mode(true);
$routeProvider
.when('/', {
templateUrl: 'index.html',
controller: 'testeCtrl'
})
.when('/teste', {
templateUrl: 'view/teste.html',
controller: 'testeCtrl'
});
});