Replies: 1 comment 5 replies
-
doesn't x-data have to be defined like this? so not as a function call? |
Beta Was this translation helpful? Give feedback.
5 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.
-
Hi everyone,
I'm using Laravel and blade components to create reusable components.
I'm trying to bind id dynamically, when component is initialized, but without success.
My blade component code is
My Alpine code is
The output is:
Note that when I do
console.log(document.getElementById(this.choicesjsId));
null is returned.What am I doing wrong? Because is null I can't initialize choicesjs plugin.
Any tips?
Regards
Beta Was this translation helpful? Give feedback.
All reactions