Top "Vuejs2" questions

Use this tag for questions specific to version 2 of Vue.

How to solve 'Redirect has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header'?

I am working on an app using Vue js. According to my setting I need to pass to a variable …

javascript jquery vuejs2
Vue.js redirection to another page

I'd like to make a redirection in Vue.js similar to the vanilla javascript window.location.href = 'some_url' How …

vue.js url-routing vuejs2 vue-router
How to listen for 'props' changes

In the VueJs 2.0 docs I can't find any hooks that would listen on props changes. Does VueJs have such hooks …

javascript vue.js vuejs2 vue-component
vue.js 2 how to watch store values from vuex

I am using vuex and vuejs 2 together. I am new to vuex, I want to watch a store variable change. …

javascript vue.js vuejs2 vuex
How to add external JS scripts to VueJS Components

I've to use two external scripts for the payment gateways. Right now both are put in the index.html file. …

javascript vue.js vuejs2 vue-component vue-router
[Vue warn]: Property or method is not defined on the instance but referenced during render

var MainTable = Vue.extend({ template: "<ul>" + "<li v-for='(set,index) in settings'>" + "{{index}}) " + "{{set.title}}" + "&…

javascript vue.js vuejs2 vue-component
Can I pass parameters in computed properties in Vue.Js

is this possible to pass parameter in computed properties in Vue.Js. I can see when having getters/setter using …

javascript vue.js vuejs2
Vue 2 - Mutating props vue-warn

I started https://laracasts.com/series/learning-vue-step-by-step series. I stopped on the lesson Vue, Laravel, and AJAX with this error: …

javascript vue.js vuejs2
How to call a vue.js function on page load

I have a function that helps filter data. I am using v-on:change when a user changes the selection but …

javascript vue.js vuejs2
Vue Js - Loop via v-for X times (in a range)

How can I repeat a loop via v-for X (e.g. 10) times? // want to repeat this (e.g.) 10 times <…

javascript vue.js vuejs2 v-for