lundi 3 février 2020

Url Mapping in Ember js

I have two separate routes parking and Car (not a nested route).

Parking route has dynamic segment like parking id /parking/21 and Car has car name and id /car/ford/12

Router.js:

Router.map( function() {
   this.route("parking", { path: "/parking/:parkingId"})
   this.route("car", { path: "/car/:carName/:carId" })
});

when transition from parking route to car route, i need a url like (/parking/21/ford/12)




Aucun commentaire:

Enregistrer un commentaire