Skip to main content
Filter by
Sorted by
Tagged with
52 votes
4 answers
62k views

Disclaimer: This is my first attempt at building an MVVM app I have also not worked with vue.js before, so it could well be that my issue is a result of a more fundamental problem. In my view I have ...
Hendrik's user avatar
  • 1,525
-1 votes
1 answer
847 views

$(function(){ var app = new Vue({ el:"#app", data: { testData: globalObj } }); }); html: <div id="app"> <span v-text="globalObj.value"></span> </...
Raymond Ma's user avatar
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
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
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
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
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
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
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
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
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
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
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
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
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
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