Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

ng-repeat of objects uses $$hashkey, but i declare 'track by' #1050

Closed
estvmachine opened this issue Jun 30, 2015 · 1 comment
Closed

ng-repeat of objects uses $$hashkey, but i declare 'track by' #1050

estvmachine opened this issue Jun 30, 2015 · 1 comment

Comments

@estvmachine
Copy link

Hi, i got a problem, i declare the ng-repeat of lists of objects using track by uniqueid, but the ui-select still uses '$$hashkey' like he cant reconognize the track.

<ui-select
                               multiple
                               ng-init= "typeDocumentsAll= listTypeDocs()"
                               ng-model="searchParams.typedocs"
                               theme="select2"
                               style="width: 200px;">
                      <ui-select-match placeholder="Select the type of document.">
                                {{$item.code}}
                      </ui-select-match>
                      <ui-select-choices
                            repeat="typedoc in (typeDocumentsAll | filter:$select.search) 
                                                                                  track by typedoc.code "
                      >
                        <div ng-bind="typedoc.code"></div>
                        <small>
                          name: <span ng-bind-html="''+typedoc.name | highlight: $select.search"></span>
                        </small>
                      </ui-select-choices>
                    </ui-select>

This is relationed to #665

@user378230
Copy link
Contributor

I think this is a dupe of #665 so closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants