ember splice array is not reflexing on view code example
Example: when new item added in array its not refreshing the list in ember
App.MyController = Ember.ArrayController.extend({
results: [],
init: function(){
_this = this;
App.MyModel.find({}).then(function(contents) {
obj1 = contents.objectAt(0);
obj1.get('data').hasMany.results.forEach(function(item){
_this.results.pushObject(item)
});
})
//rest of the code
}
});