observer (propertyNames, func) public
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
Please login to continue.