0👍
As I understand the composition API you cannot outsource your JS code if you use it in setup: https://vuejs.org/api/sfc-script-setup.html
If you want to outsource your JS code you need to declare the component:
Inside the defineComponent
you the can hook into the setup method: https://vuejs.org/api/composition-api-setup.html
- [Vuejs]-Obtain values from Laravel Controller and display in Vue
- [Vuejs]-How to accept only four number in q-input in quasar?
Source:stackexchange.com