Angular-route about $locationProvider
IF HTML5
in the index.html add to tag head
<base href="/" />
module config
$locationProvider.html5Mode(true);
NOT HTML5
module config
$locationProvider.html5Mode(false);
$locationProvider.hashPrefix('!');
评论