Vue.js is an open-source library for building interactive web interfaces. It creates data-driven user interfaces with a simple and flexible API. This tag is related to the Vue.js JavaScript library, version 2.

7
votes
1answer
3k views

VueJS: why is “this” undefined?

I'm creating a component with Vue.js. When I reference this in any of the the lifecycle hooks (created, mounted, updated, etc.) it evaluates to undefined:mounted: ()=> {console.log(this); //...
10
votes
1answer
3k views

How to solve Interpolation inside attributes has been removed. Use v-bind or the colon shorthand ? Vue.JS 2

My vue component is like this :<template><div><div class="panel-group" v-for="item in list">...<div class="panel-body">...
6
votes
2answers
4k views

Make VueJS and jQuery play nice

This question is related/similar to Using intl-tel-input and vuejs2 together , which is still unanswered.And VueJS Use prop as data-attribute value which has a solution, but explains a bit the "...
4
votes
2answers
5k views

Global data with VueJs 2

Im relatively new with VueJS, and I've got no clue about how to make some data globally available. I would like to save data like API endpoints, user data and some other data that is retrieved from ...
37
votes
5answers
21k views

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 computed, they can take a parameter and assign it to a variable. like here from ...
6
votes
3answers
10k views

Vue.js: Conditional class styling

I have some data that is accessible via:{{ content['term_goes_here'] }}... and this evaluated to either true or false. I'd like to add a class depending on the truthiness of the expression like ...
2
votes
1answer
1k views

Axios and VueJS, function(response) is not setting a list

I have an request to get some data and add it to a variable, When I use:.then(function(response) {this.persons=response.data;});It does not assign response.data to this.persons but when ...
0
votes
4answers
1k views

How to display button link with vue.js?

My view is like this :<div class="panel panel-default panel-store-info">...<div id="app"><AddFavoriteProduct></AddFavoriteProduct></div>.......
17
votes
2answers
4k views

VueJs 2.0 emit event from grand child to his grand parent component

It seems that Vue.js 2.0 doesn't emit events from a grand child to his grand parent component.Vue.component('parent', {template: '<div>I am the parent - {{ action }} <child @...
5
votes
3answers
3k views

Use arrow function in vue computed does not work

I am learning Vue and facing a problem while using arrow function in computed property.My original code works fine (See snippet below).new Vue({el: '#app',data: {turnRed: false,...
0
votes
4answers
3k views

How to update data on a page without refreshing on the vue.js?

My view is like this :<div class="favorite" style="margin-bottom:5px;"> @if (Auth::user())<add-favorite-store :id-store="{{ $store->id }}"></add-favorite-store>...
42
votes
12answers
36k views

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:vue.js:2574 [Vue warn]: Avoid mutating a prop directly since ...
14
votes
3answers
7k views

Vue.js dynamic images not working

I have a case where in my Vue.js with webpack web app, I need to display dynamic images. I want to show img where file name of images are stored in a variable. That variable is a computed property ...
1
vote
2answers
472 views

jQuery plugin in Vue component: Cannot pass value to prop

I have added the jquery redactor plugin in a vue component. The plugin is working fine but I need to access the html so I can see it in Vue.I have tried everything I can think of, methods, computed ...
0
votes
0answers
237 views

How can I display modal in modal on vue component?

My view blade like this : <a href="javascript:" class="btn btn-block btn-success" @click="modalShow('modal-data')">Click here</a><data-modal id="modal-data"></data-modal&...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,