Relative Content

Tag Archive for vue.jsvuejs3

Vue3 project created with vue-cli not working after building

Hy guys, I’ve created a vue3 project using “vue create ‘my-project'”, using the default settings, and it´s ok, if I serve it, it works perfectly. When I build it, it gets done sucessuflly but when I try to open the index.html on the broWser nothing happens and I get these errors consoled:

Vue 3 – How can I get all refs from components are not rendered from RouterView

I have a problem when working with RouterView when simulating Tabbed, because I want to get all ref values of child components from parent to check validate when submit form, I have defined array of refs for child components from parent then provide them to child components, in order to make the parent component receives all ref values from child components by keep alive, I need to render all child components before submit.

A small price slider bug when entering another value for the first time

I have a price slider and two inputs for min and max price. I have a small bug. When I try to enter another value in the min price field and start erasing the previous one, it immediately changes to 50 (the least value of a price slider), and only after the input “switches”, I can enter a new min price.

Composable function or object?

Question about correct Vue application architecture. I need to pass some logic to the component. In this case, it is recommended to use a composable function:

Cmposable function or object?

I am writing a frontend in Vue on ts. I need to pass some logic to the component. In this case it is recommended to use composable function: