Observing attribute change
Problem
Sometimes you need to be notified when an attribute changes it’s value. A simple way to do that is by using observers.
Solution
App.SearchBox = Ember.TextField.extend({
valueChanged: function () {
console.log("search query changed to " + this.get("value"));
}.observes("value")
});