Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

Add data to the transition object

$
0
0

The transition object has a property called data, which the docs claim can be used to store custom state. How do I add data to the data object? All I can find is this Stack overflow article which suggests you can do the following:

this.transitionTo('route.name').data = {my: 'data'};

I’ve tried this but am still getting any empty data object on the resulting transition. Any help would be greatly appreciated!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles