i would like to open a new perspective with query params.
That means in my index.hbs i click a button get the value from the input field. After that i will open a new route in my case map-view with path '/map' with query params like
localhost:4200/map/?search=xyz
when i do in my index controller:
queryparams:['location'],
location:null,
and in my route
actions:{
search(location){
this.transitionTo('map-view');
}
}
i get on my index url instantly
/?location=xcyxyx
but i want on my map routw
localhost:4200/map/?search=xyz
Aucun commentaire:
Enregistrer un commentaire