You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.
I've been playing around with it a bit and it turns out that the error is caused because both the translate and ngMessage directive have the same priority(0). If we set the priority of translate lower, everything works as expected.
Here's a monkey patch that worked for me:
Note that I'm not sure what consequences reducing the priority might have, but from what I'm seeing it works fine. I've also tested with interpolation and translate-values.
The text was updated successfully, but these errors were encountered:
crisbeto
changed the title
Translate directive and ngMessage
Translate directive and ngMessage not working
Jan 16, 2015
knalli
added a commit
to knalli/angular-translate
that referenced
this issue
Feb 8, 2015
As mentioned in #702 the
translate
directive doesn't work when on the same element as https://docs.angularjs.org/api/ngMessages/directive/ngMessage.Here's a simple example that breaks:
I've been playing around with it a bit and it turns out that the error is caused because both the
translate
andngMessage
directive have the same priority(0). If we set the priority oftranslate
lower, everything works as expected.Here's a monkey patch that worked for me:
Note that I'm not sure what consequences reducing the priority might have, but from what I'm seeing it works fine. I've also tested with interpolation and
translate-values
.The text was updated successfully, but these errors were encountered: