jchange

tag jchange <slecte jchange="method"></select> is for trigger a specific method of current scope when user changed the select element option.

useage

as attribute

1 <select
2   jchange="fn">
3 ...
4 </select>

arguments

@fn

Example

{{ msg }}

1 <div scope="spec.jchange">
2   <select jchange="changeCtrl">
3     <option value="f">first</option>
4     <option value="s">second</option>
5   </select>
6   <p>{{ msg }}</p>
7 </div>
1 define('spec.jchange',function(exports,require,module){
2   var me = exports;
3   exports.changeCtrl = function(str){
4     me.msg = str;
5   }
6 });