这是我的代码:
function MainCtrl($scope) {
$scope.thisarray = globalObj;
$scope.loadthis = function (index) {
return thisarray[index];
}
}
这是标记:
<table ng-controller="MainCtrl">
<tr>
<td ng-repeat="element in thisarray">
{{loadthis($index)}}
</td>
</tr>
</table>
我正在通过SOAP
回调加载一些数据:
SOAPCLient.invoke(url, methodName, pl, true, function(obj) {globalObj = obj;
**angular.bootstrap("html");**//here is where I try to reinitialize the app
});
如果您查看SOAP
呼叫,我bootstrap
会重新初始化应用程序,但它一直没有工作。loadthis
不显示 HTML 表内的任何数据。有人能帮我一下吗?