如何将额外的角度参数传递给剑道模板?我有以下代码:
{
field: "lastName",
title: "Last Name,<br/> First Name",
width: "172px",
attributes: { style: "text-align: center" },
template: "#= formatNameCE(data) #",
headerAttributes: { style: "white-space: normal; text-align: center" }
},
我希望将$scope.dateRangeFrom
和$scope.dateRangeTo
传递给模板中调用的formatNameCE
javascript函数。