Created
June 9, 2015 10:34
-
-
Save asci/fda05a9874111f3e338c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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