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.
If you use the translate-value-something directive, your values don't get in to the translate-attr keys. Works fine with if you stick with translate-values, but we prefer the translate-value-syntax, if we can use it.
translate-value-something="{{ thatThing }}" should work exactly like
translate-values="{'something': thatThing}"
Actual behaviour
The interpolated values from translate-value-var are not available to the translate-attr directive.
The text was updated successfully, but these errors were encountered:
jakefreeberg
changed the title
translate-attr is not getting translate-value-some-var interpolated
translate-attr is not getting interpolated with translate-value-some-var directives
Nov 21, 2016
I think I see how I might implement this but let me run it past you:
Within the translate-attr directive, you're watching the translateValues attr for updates.
If I did an Object.getOwnPropertyNames(attr) and started watching anything that started with translateValue I should be able to feed those values in.
Does that sound about right?
I've had no 👍 on this so I'm not sure its worth the effort, but I'd live to give a little back here so I may do it.
If you use the translate-value-something directive, your values don't get in to the translate-attr keys. Works fine with if you stick with translate-values, but we prefer the translate-value-syntax, if we can use it.
Environment
Steps to reproduce
Here's a simple plnkr to prove it: https://plnkr.co/edit/H72uqf
Expected behaviour
translate-value-something="{{ thatThing }}" should work exactly like
translate-values="{'something': thatThing}"
Actual behaviour
The interpolated values from translate-value-var are not available to the translate-attr directive.
The text was updated successfully, but these errors were encountered: