Ember.observer()

observer (propertyNames, func) public

Defined in packages/ember-metal/lib/mixin.js:703

Specify a method that observes property changes.

Ember.Object.extend({
  valueObserver: Ember.observer('value', function() {
    // Executes whenever the "value" property changes
  })
});

Also available as Function.prototype.observes if prototype extensions are enabled.

Parameters:

propertyNames String
func Function

Returns:

func
doc_EmberJs
2016-11-30 16:51:35
Comments
Leave a Comment

Please login to continue.