2016-09-11 8 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

私は間違いをしていましたが、あなたの答えは有益でした。 –