So on my app, as it is loading in a table from the rails DB side, it comes in very late, and my little $('tr:even').addClass("trAlt"); - only reads 1 tr, and doesn't apply the css class for styling. I have placed the script on didInsertElement as follows:
App.RecordsView = Ember.View.extend({
templateName: 'records/index',
contextBinding: 'App.RecordController',
didInsertElement: function(){
$('tr:even').addClass("trAlt")
}
});
But the inital load is 1 tr row (the headings), and then Ember isn't firing off the even as the view changes. Most of the code is the same as from this question.