angular.js - ng1 url 问题
phpcn_u1582
phpcn_u1582 2017-05-15 17:09:59
0
2
474

今天发现浏览器中url居然多了一个叹号,有人知道是怎么回事么?

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 usehashPrefixto 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
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!