今天发现浏览器中url居然多了一个叹号,有人知道是怎么回事么?
http://localhost:3000/#!/home
Have you upgraded the new version of ng-route? The default is '#!'.
Official documentation is here: https://docs.angularjs.org/api/ng/provider/$locationProvider
https://docs.angularjs.org/api/ng/provider/$locationProvider
You can use hashPrefix to remove the exclamation point in config.
hashPrefix
$locationProvider.hashPrefix('');
You can search angular hashbang
Have you upgraded the new version of ng-route? The default is '#!'.
Official documentation is here:
https://docs.angularjs.org/api/ng/provider/$locationProvider
You can use
hashPrefix
to remove the exclamation point in config.You can search angular hashbang