-
Notifications
You must be signed in to change notification settings - Fork 153
translate directive along with other transclude directive #132
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
Comments
I believe so, since the translate directive has default priority of 0 and is terminal. You can read up on directive priorities and terminal here. Like you mentioned, wrapping the string in a span is usually what you want to do. |
I'm still trying to avoid the inner I my case I need |
This isn't caused because of
Check the docs link mentioned by @gabegorelick, you might want to look into directive priorities. |
Actually, I believe it is caused by terminal. Terminal says to not execute That being said, I still think limiting other directives on the translate On Tuesday, November 25, 2014, Ruben Vermeersch [email protected]
|
I checked things again and yes, you are right. We used to have the double-directive trick that's also used by |
We could set the translate directive at a different priority. But should it On Tuesday, November 25, 2014, Ruben Vermeersch [email protected]
|
Not without breaking compatibility: people might be depending on the existing behavior. I too recommend just throwing a span in there. Happens in a gazillion other places as well in Angular.JS. |
Yeah the compatibly goes without saying :) On Tuesday, November 25, 2014, Ruben Vermeersch [email protected]
|
#147 makes the directive non-terminal. That should fix some of the issues brought up in this bug report. But in general |
I'm using the
translate
directive on a tag that also has another transclude directive:(JavaScript was automatically generated from CoffeeScript with ng-classify:
)
Setting
demo
directive's priority to -1000 translatesSome text
but replaced the demo's template entirely.Is this supposed to work somehow? or I must to put
translate
on another inner tag:The text was updated successfully, but these errors were encountered: