首页新闻找找看学习计划

内嵌 ng-click 失效,如何让ng-click有效 在线急等,帮帮忙

0
悬赏园豆:20 [待解决问题]

var options = {}; 

options.columnDefs ={
                            name: 'gakunen_name',
                            header1:'hizuke',
                            header4:'kamoku_kigo',
                            header3:'kakutei_kbn_meisho',
                            displayName: '全選択',
                            width: 50,
                            pinnedLeft: true,
                            enableColumnMenu: false,
                            cellClass: 'pinnedTextAlignCenter',
                            //type: 'checkbox',
                            noUnselect: true,
                            cellTemplate:'<input ng-click="grid.appScope.myhello();" ng-model="gakunen_name"  type="checkbox"/>', //ng-model="true"
                            enableSelectAll : true
                       }

grid.myhello=function(){
            alert(12);
        }

 

内嵌 ng-click 失效,如何让ng-click有效,其实我的最终目的,想改变 'gakunen_name' 的值。求各位大神指点

快乐的小太阳的主页 快乐的小太阳 | 初学一级 | 园豆:131
提问于:2018-08-14 09:52
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册