Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug when two todo have the same description #17

Merged
merged 1 commit into from
Nov 14, 2015
Merged

Fix bug when two todo have the same description #17

merged 1 commit into from
Nov 14, 2015

Conversation

levymoreira
Copy link
Contributor

When create two todo with the same description we have the exception:

 Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: todo in todos, Duplicate key: string:
http://errors.angularjs.org/1.2.6/ngRepeat/dupes?p0=todo%20in%20todos&p1=string%3A
    at angular.js:78
    at ngRepeatAction (angular.js:19165)
    at Object.$watchCollectionAction [as fn] (angular.js:11658)
    at Scope.$digest (angular.js:11761)
    at Scope.$apply (angular.js:12012)
    at done (angular.js:7818)
    at completeRequest (angular.js:7991)
    at XMLHttpRequest.xhr.onreadystatechange (angular.js:7947)

This PR solve this problem with base in this article:

https://docs.angularjs.org/error/ngRepeat/dupes?p0=todo%20in%20todos&p1=string:

@addyosmani
Copy link
Owner

Lgtm

addyosmani added a commit that referenced this pull request Nov 14, 2015
Fix bug when two todo have the same description
@addyosmani addyosmani merged commit 6d9e07a into addyosmani:master Nov 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants