Hello,
I configured my routeProvider like this:
$routeProvider
// route for the home page
.when('/', {
templateUrl: 'pages/home.html',
controller: 'mainController'
})
// route for the about page
.when('/about', {
templateUrl: 'pages/about.html',
controller: 'aboutController'
})
// route for the contact page
.when('/contact', {
templateUrl: 'pages/contact.html',
controller: 'contactController'
});
$routeProvider.otherwise('/about');
and then I added
$locationProvider.html5Mode(true);
to remove # from the url.
And now I have the issue with refresh. When I try to refresh my page,
e.g. http://localhost:8080/axxyr/contact
I see 404 error
What is the problem with refresh when html5Mode is true?
Please advise.
Thanks
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.