Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Listen for change on model List aliased to controls options object

$
0
0
If you want to set up options after initial set up, call this.on(); to rebind the listeners defined in the control's prototype.

Here's an example based on your initial code:

  1.  init: function() {
  2.             this.options.state = this.options.data.stateParams;
  3.             this.on();
  4.       },
  5. '{state} change : function(state, ev) {
  6.  //... this should hit when data.stateParams changes
  7. }

Viewing all articles
Browse latest Browse all 3491

Trending Articles