angular.js - When learning the ng routing module, there is an extra #! after the URL when clicking on the link to the anchor point. What is going on?
怪我咯
怪我咯 2017-05-15 17:11:41
0
1
544

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
阿神

Set $locationProvider.html5Mode(true); to enable html5 mode, you can remove #!.

You can also replace #! with your own favorite

$locationProvider.hashPrefix("#");    //变成 ## 

For details, please see the following link document:
https://docs.angularjs.org/ap...$locationProvider

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