material icon indicating copy to clipboard operation
material copied to clipboard

md-autocomplete : Duplicates in a repeater are not allowed

Open lillylykho opened this issue 11 years ago • 6 comments

Hi! In my application I got an error on ng-repeat of autocomplete:

Error: [ngRepeat:dupes]: Duplicates in a repeater are not allowed.

I wanted to use track by expression, but it not supported (if I'm not fault). How about to implement this?

And Big Thanks for your work guys!

lillylykho avatar Apr 30 '15 06:04 lillylykho

Hi! What's happening with this? Anybody? @robertmesserle

lillylykho avatar May 13 '15 06:05 lillylykho

@lillylykho Can you provide more explanation for your use-case?

@jelbourn We should discuss this once we have a use-case.

robertmesserle avatar May 13 '15 10:05 robertmesserle

Sometimes, in list of searched results I receive two identical objects and I get this error:

Error: [ngRepeat:dupes]: Duplicates in a repeater are not allowed.

So, I need the ability to control ngRepeat via track by

Thanks

lillylykho avatar May 17 '15 05:05 lillylykho

Out of curiosity, do you WANT the same result to appear twice? In either case, I do plan to look into this, just curious.

On Sat, May 16, 2015 at 10:39 PM, lillylykho [email protected] wrote:

Sometimes, in list of searched results I receive two identical objects and I get this error:

Error: [ngRepeat:dupes]: Duplicates in a repeater are not allowed.

So, I need the ability to control ngRepeat via track by

Thanks

— Reply to this email directly or view it on GitHub https://github.com/angular/material/issues/2625#issuecomment-102749864.

robertmesserle avatar May 17 '15 16:05 robertmesserle

it is strange and curious, but in some cases - yes I need it

lillylykho avatar May 21 '15 06:05 lillylykho

And, thanks for response!

lillylykho avatar May 21 '15 18:05 lillylykho