に動作していないこれは私のインデックスページですangular.isArray機能がループ
<li class="active" ng-repeat="items in menuItems">
<span ng-if="angular.isArray(items)">
<a href="" class="act">{{items}}</a>
</span>
</li>
これは
app.controller('mainController', function($scope) {
$scope.assests = 'include/assests.html' ;
$scope.menu = 'include/menu.html' ;
$scope.footer = 'include/footer.html' ;
$scope.menuItems = [ 'a' , ['xyz'] , ['abc'] ];
});
のMenuItem私のコントローラであり、配列と値の組み合わせですが、angular.isArray(アイテム)どちらも真でも偽でもない。
http://stackoverflow.com/questions/25411291/angularjs-inline-check-if-an-array-check –