I have an Ember application consisting of 3 routes:
router.route('territory', { path: 'localhost/app/territory/:tid' });
router.route('aggregator', { path: localhost/app/territory/:tid:/aggregator/:aid' });
router.route(territory, { path: 'localhost/app/territory/:tid/aggregator/:aid/item/:iid' });
the transition through transitions is carried out from the territory to the aggregator, from the aggregator to the element and from the element to the subclause. The sub-item uses the same route (third), simply changing the iID value in the route model.
I created an action that allows the user to go to a specific route with some logic and at the end run the command:
model={ tid: "ttt" aid: "aaa" iid: "iii" } destination = 'item';
If I am in an elementβs route and I want to go to another element, the URL will be updated, but not the contents of the page. Obviously, if I refresh the page with the generated URL, the content will refresh.
Where is the problem? in a transition method that is out of date or do I need to use something else?
IMPORTANT: I ββam using EmberJS - V1.0.0-RC.1
Redbass
source share