Yes, here's how to access the list of users.
This is because it is DashboardIndexViewinserted into the DOM before it is controller.userspopulated with data from the server.
, , controller.users - ajax, , didInsertElement .
, controller.users . didInsertElement - , JP.User.find().
, , JP.User.find() , DOM. - :
JP.DashboardIndexView = Ember.View.extend({
didInsertElement: function() {
this.usersChanged();
},
usersChanged: function() {
if (!this.$()) { return; }
console.log(this.get('controller.users'));
}.observes('controller.users.@each')
});