我得到角度错误:
Error: l is not a function
.compile/</<@http://localhost/investui/app/vendor/uibootstrap/ui-bootstrap-tpls-0.4.0.min.js:1
Scope.prototype.$digest@http://localhost/investui/app/lib/angular.js:8811
Scope.prototype.$apply@http://localhost/investui/app/lib/angular.js:9012
done@http://localhost/investui/app/lib/angular.js:10265
completeRequest@http://localhost/investui/app/lib/angular.js:10449
createHttpBackend/</xhr.onreadystatechange@http://localhost/investui/app/lib/angular.js:10407
http://localhost/investui/app/lib/angular.js
Line 6349
我正在尝试动态地将选项卡设置为活动状态。使用来自angular-ui的引导程序标签集。
控制器:
$scope.sectorIndustryActive = 0;
$scope.isSectorIndustryActive = function(sectorIndustry) {
return sectorIndustry.id == $scope.sectorIndustryActive;
};
$scope.sectorIndustries = sectorsFctr.get();
模板:
<tabset>
<tab ng-repeat="sectorIndustry in sectorIndustries"
heading="{{ sectorIndustry.name }}"
active="isSectorIndustryActive(sectorIndustry)">