Skip to main content
Filter by
Sorted by
Tagged with
204 votes
6 answers
165k views

I'm using Vuejs. This is my markup: <body> <div id="main"> <div id="mainActivity" v-component="{{currentActivity}}" class="activity"></div> </div> </body> ...
dopatraman's user avatar
11 votes
3 answers
11k views

I want to access the inner <input> element after it has been created by Vue: <li v-repeat="subtask: subtasks"> <input v-model="subtask.name" type="text"> </li> However, ...
Bryce's user avatar
  • 6,680
3 votes
1 answer
4k views

I am trying to calculate the average of sub grades that aren't equal to zero and setting a binded input to that new average value. The sub grades have a v-on directive that calls a calcAverage() ...
ksumarine's user avatar
  • 782
12 votes
1 answer
19k views

I'm having trouble getting data to display in my Vue components. I'm using Vueify and I'm trying to load an array of listings from the listings.vue component and I keep getting errors. Also, I don't ...
parkeragee's user avatar
3 votes
1 answer
2k views

HTML: <div id="demo"> <h1>{{title | uppercase}}</h1> <ul> <li v-repeat="todos" v-on="click: done = !done" class="{{done ? 'done' : ''}}"> {{...
ksumarine's user avatar
  • 782
1 vote
1 answer
613 views

Fiddle: http://jsfiddle.net/6Lt7kc94/3/ parent component <div v-component="child"> <div v-component="transcluded"></div> </div> child component (visible is hardcoded to ...
CheapSteaks's user avatar
  • 5,039
2 votes
1 answer
7k views

I want to load the template for a VueJS component dynamically. I'd like to make an AJAX call using jQuery, and whatever the server returns should be the template of the VueJS component. Here's a ...
Nightwolf's user avatar
  • 4,689
1 vote
1 answer
2k views

I'm following the pattern described in the official documentation of loading views using components. One of the components has a form field I need to have a method called .tagsinput() called on since ...
Nightwolf's user avatar
  • 4,689
3 votes
3 answers
22k views

I want to put my JSON data into Vue data, and a display, why can't I get to work? compiled: function(){ var self = this; console.log('teste'); $.ajax({ url: 'js/fake-ws.json', ...
Guilherme Cruz's user avatar
9 votes
2 answers
4k views

I want to use Vue.js to more easily manipulate the DOM but when I initialize a Vue object it rewrites initial data that is generated with backend at first before manipulating. For example I have this ...
Gherman's user avatar
  • 7,556
1 vote
1 answer
3k views

I have a language selector view that includes a dropdown component. I want to set a default property (isOpen) in the dropdown component and then include computed data from the language selector, that ...
nils's user avatar
  • 27.4k
1 vote
1 answer
5k views

So here is my problem: I want to make a component that takes it's values from v-with="values" and add them to my component model after some modification, then display those modified properties. But ...
KwakawK's user avatar
  • 11
2 votes
1 answer
2k views

I don't know if what I'm trying to do is possible. I'm trying to create an Angular directive that repeats over a data object and prints out its values as well as the values of a second unrelated ...
mynameisnotallowed's user avatar
93 votes
12 answers
183k views

How can I find the vue.js component corresponding to a DOM element? If I have element = document.getElementById(id); Is there a vue method equivalent to the jQuery $(element)
Ghigo's user avatar
  • 1,707
3 votes
4 answers
2k views

I am trying to use v-attr to add an attribute that contains a colon which is a delimiter for Vuejs key:value. It doesn't compile. <svg> <use xmlns:xlink="http://www.w3.org/1999/xlink" ...
Cheston Lee's user avatar
0 votes
2 answers
3k views

I am trying to keep my data somewhat separate from my viewmodels by setting them by assignment. I'd like to replace an array and have the DOM update, as in this example: demo.items = demo.items....
Jehan's user avatar
  • 2,769
1 vote
1 answer
3k views

I'm looking to animate the appearance of new elements and the disappearance of old elements when you change the component a v-view element is bound to. However because changing the ViewModel actually ...
Migwell's user avatar
  • 20.4k
3 votes
2 answers
8k views

In my project I have a form that can only be submitted when certain fields are filled in, so I've created the canSubmit function in my ViewModel: var vm = new Vue({ data: { experiments: []...
Migwell's user avatar
  • 20.4k
7 votes
2 answers
13k views

I'm considering using VueJS for a multi page website. In the official example of routing, they show that you can dynamically change the template and component based on the URL, but they still have all ...
Migwell's user avatar
  • 20.4k
0 votes
1 answer
2k views

I have been working with Velocity.js and Vue.js and ran into a memory leak. Fiddle of the issue: You can see an example in this fiddle: http://jsfiddle.net/hRAn7/3/ $(function () { var ExtVue = ...
jws305's user avatar
  • 115
1 vote
1 answer
8k views

I'm trying to use vue.js to do form validation and when the element is valid to submit it via ajax. But I can't get past the validation part. My html: <div id='form' 'v-on'="change:updateForm"&...
nictrix's user avatar
  • 1,483
11 votes
3 answers
44k views

Is it possible to have an if / else statement which does not render any html in a view similar to knockout: <!-- ko if: someExpressionGoesHere -->
Chris's user avatar
  • 9,075
0 votes
1 answer
100 views

I'm working on a component that will be inserted into the DOM with a tag name like so: <component></component> instead of the v-component directive. For some reason it's not working. http:...
Jehan's user avatar
  • 2,769
14 votes
1 answer
8k views

I'm trying to make a bootstrap modal component with the awesome vue.js, but I haven't been able to find a good way to transclude- that is, I want to bundle several nested elements containing the ...
Jehan's user avatar
  • 2,769
24 votes
4 answers
8k views

When should I use a directive vs a component in vue.js? I'm implementing some stuff from Bootstrap and it looks like I could do it either way (I'm starting with the dropdown menu). I get the feeling ...
Jehan's user avatar
  • 2,769
9 votes
3 answers
38k views

Javascript code: var main = new Vue({ el: "#main", data: { currentView: "top", }, }); var topComponent = Vue.component('top', Vue.extend({ ...
xxxxx's user avatar
  • 1,984
35 votes
4 answers
25k views

I'm playing with new MVVM framework - Vue.js (http://vuejs.org/). It was really nice in simple examples and demos but now I'm trying to create big SPA with multiple views and I'm realizing that the ...
Kosmetika's user avatar
  • 21.3k

1
2159 2160 2161 2162
2163