ember.js - How to get the changed Object in ember observer -
i want changed object in ember observer in view,
watchstatus: ( -> console.log "i want changed object here???" map = @get('map') trucks = @get('controller.model.content') = 0 while < trucks.length @makemarker trucks[i], map i++ ).observes('controller.model.content.@each.status')
you should use array observer then.
http://emberjs.com/api/classes/ember.array.html#method_addarrayobserver
Comments
Post a Comment