Angular ng-click does not work in Kendo UI template

烂漫一生 提交于 2019-12-13 04:23:36

问题


I'm trying to add ng-click into Kedo UI template, but function saveCustomView on theUser controller still cannot be fired.

But outside of the tag is ng-click working correctly.

<div id="grid" data-ng-controller="UsersCtrl" data-ng-init="initGrid()" >
    <script type="text/x-kendo-template" id="testBtn" >
        <div class="toolbar">
            <a data-ng-controller="UsersCtrl"
                ng-click="saveCustomView()">
                Add actual selection to custom views
            </a>
        </div>
    </script>

Could somebody tell me how can I solve it?

Thanks for any help.

来源:https://stackoverflow.com/questions/24487794/angular-ng-click-does-not-work-in-kendo-ui-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!