108,131 questions
1
vote
1
answer
8k
views
access object with dynamic variable vue.js
This is my object
var users ={
twitter : {
name : //,
lastname : //
},
facebook : {
name : //,
lastname : //
}
}
}
I have a dynamic variable activeuser that updates from ...
1
vote
1
answer
5k
views
Linq.JS OrderBy with null values
I would like to order my data by the date, but some of the date values are null. How would I go about ordering the data and have the null values be together at the end of my list for descending and ...
0
votes
1
answer
362
views
Vue JS 0.12 Dynamic Components
I upgraded to Vue 0.12 but it's left me with a tricky problem.
I'm using Browserify/Vueify to transpile and concatenate single file component definitions. In my app component I "require" the needed ...
1
vote
1
answer
471
views
Re-binding vue.js component
I've got a custom Vue component that is successfully bound to a javascript object, but now would like to re-bind the component to another object. Is this possible?
Markup:
<div id="wrapper">
...
0
votes
1
answer
202
views
Vue.js component issue
js i'm starting to catch up on it but i'm stuck on components would appreciate your help thanks
//here is my js
Vue.component('thatsCool', {
template: document.querySelector('#myOwnTemplate'),...
0
votes
2
answers
147
views
Difference between two similar functions, why is one working and the other not
I have two functions, one working, the other not.
They are equal, except that the one is looping through a variable, in which the global object of the scope is saved (hope this makes sense), and the ...
1
vote
1
answer
9k
views
Updating the DOM with change in an object (vue.js) - binding not working?
I have the app.js file where gmarkers is an array of objects :
var vm = new Vue({
el: '#lili',
data: {
listings: gmarkers
}
});
In my HTML file :
<div id="lili" >
<...
2
votes
0
answers
2k
views
vuejs send an empty value and response is the field required
Today I started to work with vuejs.
and my form is just having field (name) and submit button
so when I tried to debug the post request it send whatever I put in the input field and after submitting ...
0
votes
1
answer
165
views
Add Javascript array to form input
I am building a group mailing system with VueJS and jQuery for the front-end, Laravel 5 for the back-end.
I am using AJAX calls to retrieve a listing of users based on groups, agencies, or all ...
6
votes
1
answer
47k
views
[Vue warn]: Failed to resolve component
This is my code:
window.onload = function () {
var main = new Vue({
el: '#main',
data: {
currentActivity: 'home'
}
});
Vue.component('home', {
template: '#home-template'
});
};...
1
vote
1
answer
613
views
Vue components don't get attached if transcluded in parent components that have `v-if`
Fiddle: http://jsfiddle.net/6Lt7kc94/3/
parent component
<div v-component="child">
<div v-component="transcluded"></div>
</div>
child component (visible is hardcoded to ...
3
votes
1
answer
2k
views
Displaying HTML if data is empty
HTML:
<div id="demo">
<h1>{{title | uppercase}}</h1>
<ul>
<li v-repeat="todos" v-on="click: done = !done" class="{{done ? 'done' : ''}}">
{{...
1
vote
1
answer
3k
views
Vue.js: Default data in component is always overridden with v-with
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 ...
2
votes
1
answer
2k
views
Angular/Vue.js loop through two objects in same directive
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 ...
1
vote
1
answer
3k
views
VueJS transitions using v-view
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 ...
0
votes
1
answer
100
views
Component inserted with tag name doesn't work
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:...