I have a method for Vuejs component: async submit () { if (this.$refs.form.validate()) { let formData = new FormData() formData.append(‘userImage’, this.avatarFile, this….
Tag: vue.js
Display images with VueJS and Laravel
I am trying to display images with VueJS, but it either prints {{ activity.image }} or shows a compilation error. These are the attempts: How do I do it? Answer I assume activity.image is coming from the JavaScript, since you’re using the dot notation. You can use v-bind:src=”activity.image”, yes, without the mustache. or if it came from PHP, you should
Using xdebug with a front-end js SPA?
I have xdebug working great when I access my server directly (thru a vhost entry to the IP set up by homestead/vagrant). However, I have a decoupled frontend that I’m running on localhost:8080, that …