Dynamic badge blade color
color="" and :color="" can't call or use alpinejs function or variable, how can i solve this?
the code:
5 Replies
It's hard to see what part of your code you are referring to, using these screenshots with a large chuncks of code. Can you post small snippets formatted as code using backticks and only keep the parts that are relevant for your question?
You probably can’t use the Blade component if you need to set the color via Alpine.