content という名前の配列にコンテンツを追加しようとしています。テスト値が正しく追加されます。GET 呼び出しのコンテンツが読み込まれていません。なぜこれ?
App.CustomerController = Ember.ArrayController.extend({
content: [],
init: function() {
this._super();
content = this.get("content");
content.push(App.Customer.create({ name: 'Test' }));
$.get("/Customer/GetCustomers", {}, function (result) {
for (var I = 0; I < result.customers.length; ++I) {
content.push(App.Customer.create({ name: result[I] }));
}
});
}
});
App.Customer = Ember.Object.extend({
name: null
});