david19
2 months ago
330
5
Laravel

Laravel Components and Vue.js

Posted 2 months ago by david19

Hello Team. I have a question for a approach.

Example: Lets create a dropdown Button Component.

I will create a Laravel Component. But now i need javascript for my dropdown button.

Where is the best place for my vuejs? Because, if i use this button many times in the same page, then i get the same javascript code again.

Should i create Vue Component,too for this button? My Code works, but its not clean...Many thanks.

Please sign in or create an account to participate in this conversation.