I put the $ locationProvider.html5Mode (true); on my routes to take that #! URL. I'm not sure if this is a good way to do this, but I do not know how to do this.
This happened to happen when I started using $ locationProvider.html5Mode. As a server, I'm using the link .
If you do not have a solution for this, you would like to recommend another server, other than apache. One in that style from http-server msm.
I was using ngRoute, ms I switched to test the UI router, ms n changed na
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state("home", {
url:'/',
templateUrl: "view/home.html"
})
.state("perfil", {
url:'/perfil',
templateUrl: "view/profile.html"
})
.state("portifolio", {
url:'/portifolio',
templateUrl: "view/portifolio.html"
})
.state("contato", {
url:'/contato',
templateUrl: "view/contact.html"
});
$locationProvider.html5Mode(true);
});