ember.js - Properties of my view can't saved -
can me understand why this.get('property_1')
null? , how can fix it?
app.someview = em.view.extend({ property_1: null, didinsertelement: function() { this.schedulerefresh(); }, schedulerefresh: function(){ ember.run.scheduleonce('afterrender', this, this.refresh); }.observes('controller.filter_params'), refresh: function(){ if (!this.get('property_1')) { this.set('property_1', 'hello'); } } });
thanks!
the code have above works fine. take @ jsfiddle. possible trying retrieve property_1
view property controller? if so, want define property on controller , bind view.
Comments
Post a Comment