http://localhost/shop#/item/1000
I want to change it to http://localhost/shop#item-1000
I use $stateProvider
.state('item', {
url: '/item/:id',
templateUrl: "/ionic/templates/item.html",
controller:'ItemShowController'
})
The above has also been changed. Changing it to url: 'item-:id',
is useless
First generally
#
之前的路由是后端提供的,#
之后的路由是由Angular
控制的;#
表明整个应用使用的是Angular
default hash routing. If you want to change it to what you want, you can try this:This should be fine