我想用查詢參數打開一個新的視角。Ember路由查詢參數
這意味着在我的index.hbs我點擊一個按鈕從輸入字段獲取值。 後,我將在我的情況下,地圖視圖,路徑與查詢參數「/圖」像
localhost:4200/map/?search=xyz
新開的航線,當我在我的索引控制器做:
queryparams:['location'],
location:null,
,並在我的路線
actions:{
search(location){
this.transitionTo('map-view');
}
}
我得到我的索引網址瞬間
/?location=xcyxyx
,但我想在我的地圖路線
localhost:4200/map/?search=xyz
適合我 – Fesco