I have a model like:
TestModel = Em.Object.create({
id:'',
name:''
})
and a object ArrayController like:
testArrayController = Em.ArrayController.create({
content: [],
init: function() {
//push some object TestModel
}
});
I want to remove some objects depend on id property of a object in content array. How to do that?
I would use a combination of
findPropertyandremoveObject, see http://jsfiddle.net/pangratz666/rXN4E/: