2016-09-11 2 views
0
$scope.subjects = [ 
    "Computer Security", "Graphics and Multimedia", 
    "Networks", "Computer Science and Engineering", "Game Design", 
    "Programming", "Information Technology", "Software Engineering", 
    "Technology Management", "Telecommunications", "Web Development", 
    "Environmental Sciences", "Biology", "General", "Aviation", 
    "Mathematics", "Engineering"]; 


<label class="concentration-label3" ng-repeat="subject in subjects"> 
    <input type="checkbox" name="concentrations" class="concentration-label3__input js-concentration-value" value="" data-mixpanel-subject="Design"> 
    <span class="concentration-label3__title" for="conc1"> 
    {{subject}} 
    <span class="concentration-label3__title__checkmark4"></span> 
    </span> 
</label> 

Issue: Error: ngRepeat:dupes Duplicate Key in RepeaterNG 반복 중복 문제,

+0

하지만 난 중복 문제에 직면하고있다가. 그리고 당신의 plunkr 링크는 hellow plunkr 스크립트를 포함하고 있습니다. ... –

답변

1

시도가 NG 반복에 트랙을 추가 할 수있는 중복이되지 않습니다

<label class="concentration-label3" ng-repeat="subject in subjects track by $index"> 
+0

그곳에서 저는 실수를하고있었습니다. –