Top "Vue.js" questions

Vue.

How to pass a parameter to Vue @click event handler

I am creating a table using Vue.js and I want to define an onClick event for each row that …

vue.js
Vue-router redirect on page not found (404)

I'm trying to redirect to 404.html on page not found using the router.beforeEach global hook, without much success (using …

http-status-code-404 vue.js vue-router
Vue.js : How to set a unique ID for each component instance?

I want to create a component with Vue.js containing a label and an input. for example : <label for="…

vue.js
VueJS conditionally add an attribute for an element

In VueJS we can add or remove a DOM element using v-if: <button v-if="isRequired">Important Button</…

javascript vue.js vuejs2
How can Vue router get current route path of lazy-loaded modules on page load?

I have a vue app with router set up like: import index from './components/index.vue'; import http404 from …

javascript vue.js vue-router
How to comment code in a vue.js file?

I have the need to insert a comment inside a vue.js file for future references, but I don't find …

vue.js blade laravel-blade
How to set favicon.ico properly on vue.js webpack project?

I have created a vue webpack project using vue-cli. vue init webpack myproject And then ran the project under dev …

html ecmascript-6 webpack vue.js favicon
Change the default base url for axios

I have configured my axios like this const axiosConfig = { baseURL: 'http://127.0.0.1:8000/api', timeout: 30000, }; Vue.prototype.$axios = axios.create(axiosConfig) Inside …

javascript vue.js vuejs2 axios
What is nextTick or what does it do in VueJs

I read the docs, but I can't understand it. I know what data, computed, watch, methods do but what is …

vue.js vuejs2
Set default value to option select menu

I want to bind a custom attribute to an option select menu. The <option> tag would simply have …

vue-component vue.js vuejs2