Blade: Generally allow and evaluate dynamic attributes - not only when using components #43942
Unanswered
stoffpalette
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using components, we can use dynamic attributes by prepending a colon, e.g.:
<x-my-component :title="__('translate-me')" />
It would be great, if we could also use the colon-syntax on any tag, e.g.:
<input type="text" :title="__('translate-me')" />
Currently we have to use double curly braces in non-component-tags to "dynamize" the attribute value:
<input type="text" title="{{ __('translate-me') }}" />
Beta Was this translation helpful? Give feedback.
All reactions