title: How to flash changed values in Ember.js
body: <p>I am using Ember.js to create a table from a json feed. I have a requirement to flash the values (within a table row) that are changing. How do I do this in Ember.js?</p>
  
  <p>My template is shown below:</p>
  
  <pre><code>&lt;tbody&gt;
      {{#each Quotes.quotesController.content}}
          &lt;tr&gt;
              &lt;td class="quote-name"&gt;{{name}}&lt;/a&gt;
              &lt;td class="quote-code"&gt;{{code}}&lt;/a&gt;
              &lt;td class="quote-value"&gt;{{value}}&lt;/a&gt;
              &lt;td class="quote-bid"&gt;{{bid}}&lt;/a&gt;
              &lt;td class="quote-offer"&gt;{{offer}}&lt;/a&gt;
          &lt;/tr&gt;
      {{/each}}
  &lt;/tbody&gt;
  </code></pre>
  
  <p>Here's the code that fetches and updates the quotes:</p>
  
  <pre><code>fetchQuotes: function() {
      var scope = this;
      $.getJSON('/rest/quotes', function(data) {
          $.each(data, function(index, quote) {
              scope.updateQuote(quote);
          });
      });
  }
  </code></pre>
  
  <p>Just as a comparison, in backbone.js, I was binding to change events at the attribute level and firing animations in the callbacks. For example:</p>
  
  <pre><code>this.model.bind('change:value', this.updateValue);
  
  updateValue: function() {
      var td = $(this.el).children('.quote-value');
      td.html(this.model.get('value'));
      td.animate({color: animationColor}, 200)
        .animate({color: '#000000'}, 3800, 'easeInQuint');
  },
  </code></pre>
  
  <p>I don't know if such an approach is possible/recommended using Ember.js.</p>
  
  <p><strong>Edit:</strong>
  I almost have it now. I can handle an event on a table cell and change its color to anything. See <a href="http://jsfiddle.net/nareshbhatia/ewvQF/" rel="nofollow">this</a> jsfiddle - click of any cell in the value column and it will turn red. The only thing I don't know is how to capture a change to the table cell value instead of a click event. Is there any such thing as a change event that I can capture?</p>