Shared attribute values, dynamic attribute composition (DRY improvement) #6878
joshistoast
started this conversation in
Ideas
Replies: 1 comment
-
It would be compiled to standard attribute html: <Transition
:['enter-from-class', 'leave-to-class']="long list of classes"
>
</Transition> Output: <Transition
enter-from-class="long list of classes"
leave-to-class="long list of classes"
>
</Transition> |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Sometimes we need the same values to be applied to multiple attributes on an element. To simplify and cut down on repeating code in your project, I propose a way to apply a value to multiple attributes at once on the same line like so:
Dynamically generated attributes could be used here also with string interpolation
Beta Was this translation helpful? Give feedback.
All reactions