ember.js - adding action to select (combobox) in emberJs -


i trying add events 2 values in combobox using emberjs. have tried.

 <select class="bs-select form-control input-small">         <option {{action 'alldata' }}>all data </option>         <option {{action 'mydata' }}>my data </option>       </select> 

i have added 2 functions in controller name alldata & mydata these functions never gets called. should ?

you can try using binding instead. {{view ember.select}}

see: http://emberjs.com/api/classes/ember.select.html

you can add binding value , add observer in controller when señection changes.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -