angular.js - ng1 url problem
phpcn_u1582
phpcn_u1582 2017-05-15 17:09:59
0
2
564

Today I found that there is an extra exclamation point in the URL in the browser. Does anyone know what is going on?

http://localhost:3000/#!/home
phpcn_u1582
phpcn_u1582

reply all(2)
伊谢尔伦

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.

$locationProvider.hashPrefix('');
漂亮男人

You can search angular hashbang

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template