Ive been trying to solve this angular ng-repeat problem but getting this error
Duplicates in a repeater are not allowed. Repeater: document in project.documentConfig.documents track by document.Name key: undefined
Html:
<tr ng-repeat="project in translatorHubConfig.projects"> <td>{{ project.ProjectName }}</td> <td>{{ project.SourceLanguage }}</td> <td>{{ project.TargetLanguage }}</td> <td>{{ project.Status }}</td> <td> <div ng-repeat="document in project.documentConfig.documents track by document.Name"> <label> <input type="radio" value="{{document.Name}}" ng-model="project.documentConfig.documents" /> <a ng-href="{{document.documentUrl}}" style="cursor: pointer;">{{ document.Name }}</a> </label> </div> </td> <td></td> <td><span class="train-project" ng-click="TrainProject(project.ProjectName, project.documentConfig.documents)" /></td> </tr> If i change it to track by $index
<td> <div ng-repeat="document in project.documentConfig.documents track by $index"> <label> <input type="radio" value="{{document.Name}}" ng-model="project.documentConfig.documents" /> <a ng-href="{{document.documentUrl}}" style="cursor: pointer;">{{ document.Name }}</a> </label> </div> </td> Each time that i click on radio button will produce this:
Response:
{projects: Array(3), Success: true, StatusMessage: "", PageNumber: 0, PageSize: 0, …} PageNumber:0 PageSize:0 StatusMessage:"" Success:true TotalPages:1 projects:Array(3) 0:{ProjectName: "DemoTranslatorHub", ProjectLabel: null, DisplayName: "DemoTranslatorHub", SourceLanguage: "English", TargetLanguage: "Korean", …} 1:{ProjectName: "DemoTranslatorHub_En_Es", ProjectLabel: null, DisplayName: "DemoTranslatorHub_En_Es", SourceLanguage: "English", TargetLanguage: "Spanish", …} 2:{ProjectName: "DemoTranslatorHub_En_Ja", ProjectLabel: null, DisplayName: "DemoTranslatorHub_En_Ja", SourceLanguage: "English", TargetLanguage: "Japanese", …} length:3 I am not quite sure what is it i am doing it wrongly. Tqvm in advanced.

ng-model="project.documentConfig.documents"is stomping onng-repeat="document in project.documentConfig.documents.