Vue conditionals (v-if) not working in the CP #4388
Unanswered
ARCHES-Academy
asked this question in
Troubleshooting
Replies: 1 comment
-
Try |
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
-
For the life of me, I can't figure out how to get the v-if to work in the control panel. Full disclosure, I've never actually used Vue before this project, so I'm pretty new to all this.
I'm building a suite of custom CP pages for our student & lesson management, but I can't get the stacks & modals to work, since they rely on v-if, which keeps throwing errors for me. The templates are all written in Blade, if that makes any difference, and I've gotten a couple custom Vue components to work, just without the v-if.
Here's the code in the template:
The calendar component renders just fine. The stack, however, throws errors no matter how I try to get it to work. I've tried several different variations of code, just trying to get it to show a stack when I click on a button - but to no avail.
The error being thrown in the console is:
Beta Was this translation helpful? Give feedback.
All reactions