what is angularjs repeater dups and what is wrong with my code










-2















angular.js:12520 Error: [ngRepeat:dupes] http://errors.angularjs.org/1.4.8/ngRepeat/dupes?p0=x%20in%20sonvinrpm&p1=string%3Ac&p2=c
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:280:375
at Object.fn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:130:77)
at r.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:131:149)
at r.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:78)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:87:444)
at T (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:93:78)




I am Getting the error of repeater dubs i am just using repeater twice in my page



1



<select ng-change="getbrandname()" ng-init="ucomname='comname'" ng-model="ucomname">
<option ng-repeat="o in comnamelistfun" value="comname">o.comname</option>
</select>


2



<tr ng-repeat="x in sonvinrpm" ng-model="sonvinrpm">
<td>x.Id</td>
<td>x.Zone</td>
<td>x.Location</td>
<td>x.VenueName</td>
<td>x.Venue</td>
<td>x.Date</td>
<td>x.BrandName</td>
<td>x.StartTime</td>
<td>x.EndTime</td>
<td>x.HRS</td>
<td>x.Program</td>

<td>
<button type="button" ng-click="updatefunction(x)" data-target="#myModal" data-toggle="modal" class="btn btn-sm btn-default active" data-toggle="modal"><i class="glyphicon glyphicon-pencil" style="color:#1F4A70;"></i></button>
<button type="button" ng-click="getassigntrainerdata(x)" class="btn btn-sm btn-default active" data-toggle="modal" data-target="#assigntrainermodel"><i class="glyphicon glyphicon-remove-sign" style="color:#AB2824;"></i></button>
</td>
</tr>









share|improve this question























  • use track by $index with ng-repeat
    – Ujjwal kaushik
    Oct 15 '16 at 11:25










  • i am very new in angularjs @Ujjwalkaushik sir please do explain me
    – Information HTI
    Oct 15 '16 at 11:26










  • have you got it by my answer ?
    – Ujjwal kaushik
    Oct 15 '16 at 11:32










  • same error is coming
    – Information HTI
    Oct 15 '16 at 11:34










  • The link in the error tells you what it means! Go there
    – charlietfl
    Oct 15 '16 at 13:49
















-2















angular.js:12520 Error: [ngRepeat:dupes] http://errors.angularjs.org/1.4.8/ngRepeat/dupes?p0=x%20in%20sonvinrpm&p1=string%3Ac&p2=c
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:280:375
at Object.fn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:130:77)
at r.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:131:149)
at r.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:78)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:87:444)
at T (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:93:78)




I am Getting the error of repeater dubs i am just using repeater twice in my page



1



<select ng-change="getbrandname()" ng-init="ucomname='comname'" ng-model="ucomname">
<option ng-repeat="o in comnamelistfun" value="comname">o.comname</option>
</select>


2



<tr ng-repeat="x in sonvinrpm" ng-model="sonvinrpm">
<td>x.Id</td>
<td>x.Zone</td>
<td>x.Location</td>
<td>x.VenueName</td>
<td>x.Venue</td>
<td>x.Date</td>
<td>x.BrandName</td>
<td>x.StartTime</td>
<td>x.EndTime</td>
<td>x.HRS</td>
<td>x.Program</td>

<td>
<button type="button" ng-click="updatefunction(x)" data-target="#myModal" data-toggle="modal" class="btn btn-sm btn-default active" data-toggle="modal"><i class="glyphicon glyphicon-pencil" style="color:#1F4A70;"></i></button>
<button type="button" ng-click="getassigntrainerdata(x)" class="btn btn-sm btn-default active" data-toggle="modal" data-target="#assigntrainermodel"><i class="glyphicon glyphicon-remove-sign" style="color:#AB2824;"></i></button>
</td>
</tr>









share|improve this question























  • use track by $index with ng-repeat
    – Ujjwal kaushik
    Oct 15 '16 at 11:25










  • i am very new in angularjs @Ujjwalkaushik sir please do explain me
    – Information HTI
    Oct 15 '16 at 11:26










  • have you got it by my answer ?
    – Ujjwal kaushik
    Oct 15 '16 at 11:32










  • same error is coming
    – Information HTI
    Oct 15 '16 at 11:34










  • The link in the error tells you what it means! Go there
    – charlietfl
    Oct 15 '16 at 13:49














-2












-2








-2








angular.js:12520 Error: [ngRepeat:dupes] http://errors.angularjs.org/1.4.8/ngRepeat/dupes?p0=x%20in%20sonvinrpm&p1=string%3Ac&p2=c
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:280:375
at Object.fn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:130:77)
at r.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:131:149)
at r.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:78)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:87:444)
at T (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:93:78)




I am Getting the error of repeater dubs i am just using repeater twice in my page



1



<select ng-change="getbrandname()" ng-init="ucomname='comname'" ng-model="ucomname">
<option ng-repeat="o in comnamelistfun" value="comname">o.comname</option>
</select>


2



<tr ng-repeat="x in sonvinrpm" ng-model="sonvinrpm">
<td>x.Id</td>
<td>x.Zone</td>
<td>x.Location</td>
<td>x.VenueName</td>
<td>x.Venue</td>
<td>x.Date</td>
<td>x.BrandName</td>
<td>x.StartTime</td>
<td>x.EndTime</td>
<td>x.HRS</td>
<td>x.Program</td>

<td>
<button type="button" ng-click="updatefunction(x)" data-target="#myModal" data-toggle="modal" class="btn btn-sm btn-default active" data-toggle="modal"><i class="glyphicon glyphicon-pencil" style="color:#1F4A70;"></i></button>
<button type="button" ng-click="getassigntrainerdata(x)" class="btn btn-sm btn-default active" data-toggle="modal" data-target="#assigntrainermodel"><i class="glyphicon glyphicon-remove-sign" style="color:#AB2824;"></i></button>
</td>
</tr>









share|improve this question
















angular.js:12520 Error: [ngRepeat:dupes] http://errors.angularjs.org/1.4.8/ngRepeat/dupes?p0=x%20in%20sonvinrpm&p1=string%3Ac&p2=c
at Error (native)
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:6:416
at http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:280:375
at Object.fn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:130:77)
at r.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:131:149)
at r.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:134:78)
at g (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:87:444)
at T (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:92:50)
at XMLHttpRequest.w.onload (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js:93:78)




I am Getting the error of repeater dubs i am just using repeater twice in my page



1



<select ng-change="getbrandname()" ng-init="ucomname='comname'" ng-model="ucomname">
<option ng-repeat="o in comnamelistfun" value="comname">o.comname</option>
</select>


2



<tr ng-repeat="x in sonvinrpm" ng-model="sonvinrpm">
<td>x.Id</td>
<td>x.Zone</td>
<td>x.Location</td>
<td>x.VenueName</td>
<td>x.Venue</td>
<td>x.Date</td>
<td>x.BrandName</td>
<td>x.StartTime</td>
<td>x.EndTime</td>
<td>x.HRS</td>
<td>x.Program</td>

<td>
<button type="button" ng-click="updatefunction(x)" data-target="#myModal" data-toggle="modal" class="btn btn-sm btn-default active" data-toggle="modal"><i class="glyphicon glyphicon-pencil" style="color:#1F4A70;"></i></button>
<button type="button" ng-click="getassigntrainerdata(x)" class="btn btn-sm btn-default active" data-toggle="modal" data-target="#assigntrainermodel"><i class="glyphicon glyphicon-remove-sign" style="color:#AB2824;"></i></button>
</td>
</tr>






javascript angularjs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 14:13









Eugene Mihaylin

9601424




9601424










asked Oct 15 '16 at 11:22









Information HTI

2121421




2121421











  • use track by $index with ng-repeat
    – Ujjwal kaushik
    Oct 15 '16 at 11:25










  • i am very new in angularjs @Ujjwalkaushik sir please do explain me
    – Information HTI
    Oct 15 '16 at 11:26










  • have you got it by my answer ?
    – Ujjwal kaushik
    Oct 15 '16 at 11:32










  • same error is coming
    – Information HTI
    Oct 15 '16 at 11:34










  • The link in the error tells you what it means! Go there
    – charlietfl
    Oct 15 '16 at 13:49

















  • use track by $index with ng-repeat
    – Ujjwal kaushik
    Oct 15 '16 at 11:25










  • i am very new in angularjs @Ujjwalkaushik sir please do explain me
    – Information HTI
    Oct 15 '16 at 11:26










  • have you got it by my answer ?
    – Ujjwal kaushik
    Oct 15 '16 at 11:32










  • same error is coming
    – Information HTI
    Oct 15 '16 at 11:34










  • The link in the error tells you what it means! Go there
    – charlietfl
    Oct 15 '16 at 13:49
















use track by $index with ng-repeat
– Ujjwal kaushik
Oct 15 '16 at 11:25




use track by $index with ng-repeat
– Ujjwal kaushik
Oct 15 '16 at 11:25












i am very new in angularjs @Ujjwalkaushik sir please do explain me
– Information HTI
Oct 15 '16 at 11:26




i am very new in angularjs @Ujjwalkaushik sir please do explain me
– Information HTI
Oct 15 '16 at 11:26












have you got it by my answer ?
– Ujjwal kaushik
Oct 15 '16 at 11:32




have you got it by my answer ?
– Ujjwal kaushik
Oct 15 '16 at 11:32












same error is coming
– Information HTI
Oct 15 '16 at 11:34




same error is coming
– Information HTI
Oct 15 '16 at 11:34












The link in the error tells you what it means! Go there
– charlietfl
Oct 15 '16 at 13:49





The link in the error tells you what it means! Go there
– charlietfl
Oct 15 '16 at 13:49













1 Answer
1






active

oldest

votes


















0














use track by $index , When you get ngRepeat:dupes error



 <tr ng-repeat="x in sonvinrpm track by $index">


For more you can go through this https://docs.angularjs.org/error/ngRepeat/dupes



thanks






share|improve this answer






















  • still same error is coming
    – Information HTI
    Oct 15 '16 at 11:33










  • what is the type of $scope.sonvinrpm ? array or json object
    – Ujjwal kaushik
    Oct 15 '16 at 11:38











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40058398%2fwhat-is-angularjs-repeater-dups-and-what-is-wrong-with-my-code%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














use track by $index , When you get ngRepeat:dupes error



 <tr ng-repeat="x in sonvinrpm track by $index">


For more you can go through this https://docs.angularjs.org/error/ngRepeat/dupes



thanks






share|improve this answer






















  • still same error is coming
    – Information HTI
    Oct 15 '16 at 11:33










  • what is the type of $scope.sonvinrpm ? array or json object
    – Ujjwal kaushik
    Oct 15 '16 at 11:38
















0














use track by $index , When you get ngRepeat:dupes error



 <tr ng-repeat="x in sonvinrpm track by $index">


For more you can go through this https://docs.angularjs.org/error/ngRepeat/dupes



thanks






share|improve this answer






















  • still same error is coming
    – Information HTI
    Oct 15 '16 at 11:33










  • what is the type of $scope.sonvinrpm ? array or json object
    – Ujjwal kaushik
    Oct 15 '16 at 11:38














0












0








0






use track by $index , When you get ngRepeat:dupes error



 <tr ng-repeat="x in sonvinrpm track by $index">


For more you can go through this https://docs.angularjs.org/error/ngRepeat/dupes



thanks






share|improve this answer














use track by $index , When you get ngRepeat:dupes error



 <tr ng-repeat="x in sonvinrpm track by $index">


For more you can go through this https://docs.angularjs.org/error/ngRepeat/dupes



thanks







share|improve this answer














share|improve this answer



share|improve this answer








edited Oct 15 '16 at 11:46

























answered Oct 15 '16 at 11:26









Ujjwal kaushik

1,140716




1,140716











  • still same error is coming
    – Information HTI
    Oct 15 '16 at 11:33










  • what is the type of $scope.sonvinrpm ? array or json object
    – Ujjwal kaushik
    Oct 15 '16 at 11:38

















  • still same error is coming
    – Information HTI
    Oct 15 '16 at 11:33










  • what is the type of $scope.sonvinrpm ? array or json object
    – Ujjwal kaushik
    Oct 15 '16 at 11:38
















still same error is coming
– Information HTI
Oct 15 '16 at 11:33




still same error is coming
– Information HTI
Oct 15 '16 at 11:33












what is the type of $scope.sonvinrpm ? array or json object
– Ujjwal kaushik
Oct 15 '16 at 11:38





what is the type of $scope.sonvinrpm ? array or json object
– Ujjwal kaushik
Oct 15 '16 at 11:38


















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f40058398%2fwhat-is-angularjs-repeater-dups-and-what-is-wrong-with-my-code%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

Museum of Modern and Contemporary Art of Trento and Rovereto

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully