this.get('property_1')
常に null である理由を理解できる人はいますか? どうすれば修正できますか?
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'); } } });
ありがとう!