ng-grid celltemplate数据绑定在href中不起作用

时间:2014-02-20 19:45:05

标签: angularjs ng-grid

ng-grid单元格模板数据绑定到href无法正常工作

{ displayName: 'Options', cellTemplate: '<a ng-href="#/page/{{row.entity.PayloadId}}" class="btn">Page</a>' }

PayloadId没有附加,并且保持字符串格式。

1 个答案:

答案 0 :(得分:2)

{ displayName: 'Options', cellTemplate: '<a ng-href="#/page/{{row.getProperty(\'PayloadId\')}}" class="btn">Page</a>' }

试试这个会起作用..

相关问题