Skip to content

Instantly share code, notes, and snippets.

@asci
Created June 9, 2015 10:34
Show Gist options
  • Save asci/fda05a9874111f3e338c to your computer and use it in GitHub Desktop.
Save asci/fda05a9874111f3e338c to your computer and use it in GitHub Desktop.
App.SomeIndexRoute = Ember.Route.extend({
model: function () {
return this.store.find('some');
}
});
App.SomeShowRoute = Ember.Route.extend({
model: function (params) {
console.log('========================reload=========================='); // не вызывается если кликнуть по ссылке /#/some/111, но вызывается если обновить страницу
var some = this.store.find('some', params.id);
//как стянуть детали для рекорда? так как в индекс приходят сокращенные версии
return some;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment