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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -