I have a button controller that gets a 'countyId' from a ddl inside html once button is clicked. I get the countyId and need to add it to my URL just like the {{#link-to this}} does it inside App.Router.map...
My controller:
App.CresRoute = Ember.Route.extend({
model: function() {
return county;
},
actions: {
redirect: function(countyId){
alert(countyId); //For debug, knowing I have the ID
//CODE TO ADD countyId TO URL...
}
}
});
How can I do this using Ember framework?
Thanks!
Aucun commentaire:
Enregistrer un commentaire