Is it possible to unpack a slice/array variable into a class? #651
Unanswered
connor-hilll
asked this question in
Q&A
Replies: 1 comment
-
The If you instead mean dynamic attributes, you can use spreading: If that's not what you mean, you're gonna have to be more clear, add some examples because I doubt anyone will figure out what you mean with this little information. |
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
-
I have a dynamic amount of class values that get added to a slice within my handler which gets passed to the templ function through props. I was curious if anyone figured out a good way of either unpacking (which I don't think is possible) the slice as class variables
Beta Was this translation helpful? Give feedback.
All reactions