Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesngMessages blows up when there are duplicate child ngMessage keys #9338
Comments
btford
added
the
needs: more info
label
Sep 30, 2014
This comment has been minimized.
This comment has been minimized.
|
I don't think we want to support this behavior. What's your use-case? |
btford
added this to the Purgatory milestone
Sep 30, 2014
This comment has been minimized.
This comment has been minimized.
|
@btford it was actually a typo, but I expected to see it handled more gracefully :) |
This comment has been minimized.
This comment has been minimized.
|
@IgorMinar do you think it makes sense to improve the error message in this case? |
This comment has been minimized.
This comment has been minimized.
|
It should just silently ignore the 2nd occurrence. |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Jan 7, 2015
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Jan 8, 2015
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Jan 8, 2015
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Feb 11, 2015
This comment has been minimized.
This comment has been minimized.
|
#10676 will fix this for 1.3 and 1.4 |
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Feb 12, 2015
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Feb 12, 2015
matsko
closed this
in
c9a4421
Feb 12, 2015
matsko
added a commit
to matsko/angular.js
that referenced
this issue
Feb 12, 2015
netman92
added a commit
to netman92/angular.js
that referenced
this issue
Aug 8, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


niallsmart commentedSep 30, 2014
The
ngMessagesdirective gets into an invalid state and throws an exception when there are duplicatengMessagechild keys specified. For example:The issue seems to be a bug in the re-ordering logic in
registerMessagewhich is attempting to preserve the ordering from an included template, but in this scenario insertsnullintomessages.Test case here: http://plnkr.co/edit/7u4oFTGbeLqa1tmfMNlJ (look at the console log).