Currently stumped on an issue and not finding anything online to help me out. I am making a very basic HTTP get request to get a JSON object from an API I made (express+CORS enabled). I’ve tried with both Axios and VueResource but having the same issue where my browser shows that the request is made and is successful (even
Tag: vue.js
VueJS 2: vee-validate 3 – validation for child components not working
vee-validate version: 3.4.5 So I have a FormBuilder.vue component which builds my form inputs schema based. I have a custom InputSlugify component and I want to have vee-validate validation for it with the required rule. The Problem: When I focus the input and leave the focus, I don’t receive the error message “field is required”. But it works when I
Vue.js – Get current route in Vuex module
I have a namespaced vuex store that returns an entry of the store based on the parameter of the current route. This works as expected for the initial load. However, it is not reloaded whenever the route changes. Is there a way to reload / force the recalculation of the getter on change of the route? Answer It would be
How do I use Vue.component with modules or Vue CLI?
I’m stuck on how to declare Vue.component inside export default this is from the tutorial by vuejs.org instead of using var app = new vue, I use and i dont know where to write Vue.component in export default app thank you in advanced! Answer Components can be registered globally or locally. Vue.component is the way to register globally, which means
How can I use arcgis js in Vue js
There are several example in docs of arcgis, but I can’t use it properly. When I import Map from arcgis like shown as in that example: import Map from ‘@arcgis/Map’ It gives error in browser which not found ersi like that Why it tries to download files from assets? Answer Using the ArcGIS JS API with ES modules, you need
Is it possible to “stream” locally controled Vue.js page, so all the devices share the same state?
I’m making a simple teleprompter app, and the idea is to control it through a local PC but to have the same view/Vuex state while accessing the page from my tablet. So, same page, same state, multiple devices. Do I understand correctly that the only way is to duplicate all the mutation requests to the server, save them to the
Vue property or method is not defined on the instance but referenced during render?
When trying this code in an online compiler it works fine but on localhost I see this problem: Property or method “searchfunc” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components) main.js Home.vue Answer This error occurs when trying to use a property
use same component with same props name in on page not works vuecli
Well. i have a component called Logo and i am using it in nearly every views and even in other components. Logo component takes only 1 props: “size” and i use javascript to mack it responsive depend on its font size but => for example i have a landing: in landing i have component renderd in landing: navbar that contains
Props doesn’t feed exactly on Vuejs
I am a beginner of vue. I’ve recently started studying vue. I added a prop in my vue component. I reckon the code seems to be correct. but something weird has happened. This is the file 3. Since there are three component would be created, but when I debug and only one props data has seeded while the other two
Standard component interaction mechanisms vs Vuex – how to combine them?
The question is probably more theoretical. I have little experience with Vue and am trying to figure out where my knowledge gaps are and fill them. There are standard mechanisms for interaction between components: from top to bottom – input parameters (props) are passed from parent components to child components from bottom to top – events are thrown from child