-
Notifications
You must be signed in to change notification settings - Fork 3.4k
md-chips
not working inside ng-repeat
#3482
Comments
I'm having the same trouble. The following code doesn't work.
But weird thing is that, I have the below code in a page and the ng-repeat is populated from an array in scope. No chips are shown. Then I navigate to another page and press the browsers back button. Suddenly all the chips are displayed properly. |
You can bind |
@dmackerman Thanks. Actually, @ahmadhsalim 's issue can have a workaround with However, my example is also quite common but can not be achieved now. |
How can I use a workaround? What I want is static chips that cannot be edited. With ng-model bound to an array, it's not giving me static chips. |
@ahmadhsalim Just make the chips |
…llow usage inside ng-repeat. When an autocomplete was used inside of mdChips with the readonly attribute set to true, it would throw an erroneous error that would cause the component to not be properly configured and thus stop working. Also, using <md-chips> inside of an ng-repeat would fail. Thanks to @robertmesserle for the guidance in getting this resolved. fixes #2841, fixes #3482
…llow usage inside ng-repeat. When an autocomplete was used inside of mdChips with the readonly attribute set to true, it would throw an erroneous error that would cause the component to not be properly configured and thus stop working. Also, using <md-chips> inside of an ng-repeat would fail. Thanks to @robertmesserle for the guidance in getting this resolved. fixes #2841, fixes #3482
…llow usage inside ng-repeat. When an autocomplete was used inside of mdChips with the readonly attribute set to true, it would throw an erroneous error that would cause the component to not be properly configured and thus stop working. Also, using <md-chips> inside of an ng-repeat would fail. Thanks to @robertmesserle for the guidance in getting this resolved. fixes #2841, fixes #3482
…llow usage inside ng-repeat. When an autocomplete was used inside of mdChips with the readonly attribute set to true, it would throw an erroneous error that would cause the component to not be properly configured and thus stop working. Also, using <md-chips> inside of an ng-repeat would fail. Thanks to @robertmesserle for the guidance in getting this resolved. fixes angular#2841, fixes angular#3482. closes angular#4133.
Example here:
http://codepen.io/anon/pen/PqEZpa
If a
md-chips
is inside of anyng-repeat
, it will not work properly. Only the last repeated item has itsmd-chips
shown normally.This makes
md-chips
barely useful...The text was updated successfully, but these errors were encountered: