0
想知道是否有一個內置的方式來獲得只有查詢字符串參數沒有額外的路由參數?角ui路由器 - 只獲取查詢字符串參數
實施例與$stateParams
從docs:
// If you had a url on your state of:
url: '/users/:id/details/{type}/{repeat:[0-9]+}?from&to'
// Then you navigated your browser to:
'/users/123/details//0'
// Your $stateParams object would be
{ id:'123', type:'', repeat:'0' }
// Then you navigated your browser to:
'/users/123/details/default/0?from=there&to=here'
// Your $stateParams object would be
{ id:'123', type:'default', repeat:'0', from:'there', to:'here' }
我期待從/在這種情況下從靜止區分。