mio URL assomiglia a questo http://127.0.0.1:50884/index.html#/homecome rimuovere tag cancelletto (#) dall'indirizzo URL in ui-router
Questa la pagina indice. Sto usando angolare ui-router di cambiare per varie viste come ma url viene fornito con tag # come questo: http://127.0.0.1:50884/index.html#/mobileOperator http://127.0.0.1:50884/index.html#/contentExpertise
Domanda: Esiste un modo per rimuovere # tag/pulita dal url .. per mostrare la sentiero URL come qui di seguito:
http://127.0.0.1:50884/index.html/home
http://127.0.0.1:50884/index.html/contentExpertise
ho provato html5mode ma dà errore angolare in consolle.
Error: [$location:nobase] http://errors.angularjs.org/1.5.0-rc.2/$location/nobase
K/<@http://127.0.0.1:50884/js/angular-v1.5.min.js:6:421
pf/this.$get<@http://127.0.0.1:50884/js/angular-v1.5.min.js:110:96
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:293
gb/F<@http://127.0.0.1:50884/js/angular-v1.5.min.js:43:96
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:40:270
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:1
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:86
gb/F<@http://127.0.0.1:50884/js/angular-v1.5.min.js:43:96
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:40:270
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:1
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:86
gb/F<@http://127.0.0.1:50884/js/angular-v1.5.min.js:43:96
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:40:270
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:1
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:86
s/</<@http://127.0.0.1:50884/js/angular-v1.5.min.js:52:121
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:7:364
s/<@http://127.0.0.1:50884/js/angular-v1.5.min.js:52:90
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:293
e/<@http://127.0.0.1:50884/js/angular-v1.5.min.js:38:458
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:293
gb/F<@http://127.0.0.1:50884/js/angular-v1.5.min.js:43:96
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:40:270
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:71:447
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:60:266
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:58:229
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:58:397
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:58:397
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:56:263
Ac/c/</<@http://127.0.0.1:50884/js/angular-v1.5.min.js:21:99
sf/this.$get</[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:140:363
sf/this.$get</[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:141:83
Ac/c/<@http://127.0.0.1:50884/js/angular-v1.5.min.js:21:57
h/<[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:41:293
Ac/[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:20:1
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:21:274
[email protected]://127.0.0.1:50884/js/angular-v1.5.min.js:20:83
@http://127.0.0.1:50884/js/angular-v1.5.min.js:306:372
n.Callbacks/[email protected]://127.0.0.1:50884/js/jquery-2.2.1.min.js:2:27060
n.Callbacks/[email protected]://127.0.0.1:50884/js/jquery-2.2.1.min.js:2:27828
[email protected]://127.0.0.1:50884/js/jquery-2.2.1.min.js:2:29619
[email protected]://127.0.0.1:50884/js/jquery-2.2.1.min.js:2:29804
"
Si prega di aiutare
Vedere questo :) http://stackoverflow.com/questions/28388860/angular-add-slash-before-hash-in-url/28388903#28388903 –
utilizzare questo :: $ locationProvider.html5Mode (true); –