AngularJs Kendo UI网格编辑和;删除模板不起作用

时间:2014-03-21 20:49:30

标签: angularjs

我们正在使用AngularJS使用Kendo Web UI。在Grid控件中,我们无法将字符串类型的id传递给函数。

k-columns='[{ "field": "addressType", sortable:true, "title": "Type"},
{ "template": "<a href=\"\" ng-click=\"**detailAddress(#: id#)**\">Edit</a><a href=\"\" ng-click=\"**confirmDeleteAddress(#: id#)**\">Delete</a>", "title": "Actions" }]'  

由于id字符串类型angular会引发错误,当我们尝试更改为detailAddress('#: id#')detailAddress(\'#: id#\')时HTML不会呈现。

0 个答案:

没有答案
相关问题