tag jclick
<div jclick="method"></div>
is for trigger a specific method in current scope when user click on the element
as attribute
1 <ANY
2 jclick="fn">
3 ...
4 </ANY>
@fn
Example
{{ msg }}
1 <div scope="spec.jclick">
2 <button jclick="clickCtrl"></button>
3 <p>{{ msg }}</p>
4 </div>
1 define('spec.jclick',function(exports,require,module){
2 var me = exports;
3 exports.clickCtrl = function(){
4 if(me.msg === 'hello'){
5 me.msg = 'world';
6 }else{
7 me.msg = 'hello';
8 }
9 }
10 });