This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27.4k
ngMessage and ngBind do not work together #8089
Comments
Just came across this issue as well, is there any update/progress on it? Thanks. |
Same here. Any news on this? |
This should work now in 1.4. But you need to use ngRepeat. |
Note that it also works like this: |
Closing this for now since it is working in 1.4. |
I'm experiencing this bug in 1.4.7 |
It seems like ng-message + ng-bind was never actually solved. It really doesn't work in 1.4.7: http://plnkr.co/edit/bubtiS5bULNiCw5ach6Y?p=preview |
Narretz
added a commit
to Narretz/angular.js
that referenced
this issue
Oct 12, 2015
Narretz
added a commit
to Narretz/angular.js
that referenced
this issue
Oct 12, 2015
Narretz
added a commit
to Narretz/angular.js
that referenced
this issue
Nov 4, 2015
Fixes angular#8089 BREAKING CHANGE: ngMessage is now compiled with a priority of 1, which means directives on the same element as ngMessage with a priority lower than 1 will be applied when ngMessage calls the $transclude function. Previously, they were applied during the initial compile phase and were passed the comment element created by the transclusion of ngMessage. To restore this behavior, custom directives need to have their priority increased to at least "1".
Narretz
added a commit
to Narretz/angular.js
that referenced
this issue
Nov 4, 2015
Fixes angular#8089 Closes angular#13074 BREAKING CHANGE: ngMessage is now compiled with a priority of 1, which means directives on the same element as ngMessage with a priority lower than 1 will be applied when ngMessage calls the $transclude function. Previously, they were applied during the initial compile phase and were passed the comment element created by the transclusion of ngMessage. To restore this behavior, custom directives need to have their priority increased to at least "1".
gkalpak
pushed a commit
to gkalpak/angular.js
that referenced
this issue
Nov 23, 2015
Fixes angular#8089 Closes angular#13074 BREAKING CHANGE: ngMessage is now compiled with a priority of 1, which means directives on the same element as ngMessage with a priority lower than 1 will be applied when ngMessage calls the $transclude function. Previously, they were applied during the initial compile phase and were passed the comment element created by the transclusion of ngMessage. To restore this behavior, custom directives need to have their priority increased to at least "1".
You can place the message in a separate element inside ng-message until this issue is resolved. As in:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If you have a custom validation key (such as
server
in this case), and try bind thengMessage
element to some object you presumably have the error message in, it does not work.The above does not work, the span remains empty but visible and
errors.test
is indeed populated (and visible in scope, by tryingangular.element($0).errors.test
).If you use a child, like so:
This works correctly.
Is this expected functionality or a bug? I have no issue with having to use a child if it is expected to behave this way.
Example here.
The text was updated successfully, but these errors were encountered: