108,131 questions
4
votes
1
answer
3k
views
Laravel 5: Updating Multiple Records
I have a Simple Todo App, that doesn't persist the update of multiple records at once. The client version works properly here: http://codepen.io/anon/pen/bVVpyN
Everytime I make an action, I fire a ...
1
vote
0
answers
699
views
Webpack IE9 require() breaks scripts
This is the code I have on my site:
http://jsfiddle.net/aLxfnj97/1/
It works great even in IE9 through JSFiddle, but when I compile it with Webpack, my code will ONLY use the default values.. they ...
1
vote
1
answer
698
views
JSLint: Unexpected assignment expression
I get this warning:
Unexpected assignment expression.
return task.completed = true; // Line 63, Pos 39
When using this code:
completeAll: function () {
this.tasks = this.tasks.filter(function (...
4
votes
1
answer
18k
views
Array shows 0 as length when it has elements in it
So I have an object like so:
this.$ - this holds indexes that hold arrays. For instance, it has two different indexes: one called slide and one called thumb. Those indexes hold arrays.
I'm developing ...
7
votes
4
answers
19k
views
How do I use Vue.js debounce filter?
I am trying to use the the debounce filter as per the Vue.js docs so I can prevent firing an Ajax function while the user is typing into an input. In the past, I have used setTimeout to manually ...
-1
votes
1
answer
945
views
Can I use Mongodb with mithril js or vue js?
I would like to find out how to connect a database (e.g. Mongodb or MySql) to mithril js or vue js.
Any useful link or tutorials?
Thanks
0
votes
1
answer
83
views
How can i 'v-repeat' through this object?
When i use 'v-repeat' i can see the 'post.letter', however it looks like i also need to loop trough the posts array in the same 'v-repeat' ?
When i try 'post.posts.title' i get nothing, when i do '...
43
votes
3
answers
72k
views
Initializing Vue data with AJAX
I'm trying to populate a Vue with data from the JsonResult of an AJAX query. My Vue receives the data just fine when I encode it from my View Model, but not when I try to retrieve it using AJAX. Here'...
3
votes
2
answers
7k
views
Vue.js - Global Data from AJAX Call
I'm giving Vue.js a try and so far I'm loving it because it's much simpler than angular. I'm currently using vue-router and vue-resource in my single page app, which connects to an API on the back end....
1
vote
1
answer
748
views
Vuejs - Grab items passed to component template
So I have my markup looking like this:
<slider>
<img src="{{ gallery_image('HM722_Silver_Creek_9978.jpg', 'full') }}" alt="HM722 Silver Creek" style="margin-top:-15%;" />
<img ...
0
votes
1
answer
2k
views
Vue.js orderBy decimal
I have an object which is a collection of data. on each item there is
- name
- date_created
- price
I can get the orderBy in Vue.js to work for name and date_created but it doesnt seem to work for ...
1
vote
1
answer
4k
views
Method can not be found when using v-on Instance Method
I am using v-on in a js template (used later in a component) to fire a click event:
v-on='click : favoritesToggle(venue.slug, $event)'
however when I clik it I get
Uncaught TypeError: scope....
0
votes
1
answer
2k
views
vue.js prevent line breaks when using v-on keydown
I have a textarea that is bound to a v-model.
Upon pressing enter, I submit the textarea value and clear the model value.
The problem is that after that submit function runs, I'm left with the ...
0
votes
1
answer
2k
views
Vue-Router Duplicate Page
I'm in trouble with vue-router :) I create a simple map for router :
module.exports = {
'/': {
component: require('./views/home')
},
'/auth/login': {
component: require('./views/auth/...
3
votes
2
answers
66k
views
Vuejs - require is not defined
I am just playing around with vuejs router and try to load a component.
I used the sample code and changed foo
// Define some components
var Foo = Vue.extend({
template: require('./components/...
2
votes
1
answer
6k
views
Custom directive and directive parameters
I'm adapting the select2 example here http://vuejs.org/examples/select2.html for my project and I need to send some arguments to directive like multiple:true/false etc. This params are going to be ...
0
votes
2
answers
2k
views
FilterBy exact match in vue.js
I have a list that I want to filter by an id value:
<li v-repeat="release.tracks | filterBy track_format in 'format_id'">
This works pretty nicely unless format_id is, e.g., 12, at which point ...
1
vote
1
answer
1k
views
Dynamic vue.js components that aren't in the parent
I would like to use Vue's dynamic components (http://vuejs.org/guide/components.html#Dynamic_Components) for components that are defined in a child object instead of the parent object. For example:
...
425
votes
25
answers
764k
views
Can you force Vue.js to reload/re-render?
Just a quick question.
Can you force Vue.js to reload/recalculate everything? If so, how?
4
votes
3
answers
12k
views
how can i return data from this.$http.get in vue js
Hi I'm having problem in returning a data in my ajax call using vue js in laravel 5. I have an array of state and call the function of ajax inside the loop. The problem now is it seems that the ajax ...
2
votes
3
answers
5k
views
VueJs: Working with v-class
I am trying to assign a css class to a span element, whenver it push the EDIT button.
This is my working example in jsfiddle:
http://jsfiddle.net/r3nepL7u/
BUT it only works, because I check if ...
1
vote
3
answers
1k
views
if vue-resource has option like jQuery.ajaxSetup();
https://github.com/vuejs/vue-resource
I want to add a global setup to Vue.http
Like this
$.ajaxSetup({
complete: function(xhr, status) {
if (xhr.status == '401') {
...
1
vote
1
answer
384
views
Running functions on a data object
Basically, when I load my homepage, vue.js requests an api, that returns a json response like so
[
{
"time": 321
},
{
"time": 2712
}
]
When the request is finished loading, I assign ...
3
votes
1
answer
7k
views
Vue.js - "Bind" bootstrap modal to Vue model
So, in my Vue instance, I have a currentTask model, which is null by default.
new Vue({
el: '...',
data: {
currentTask: null
}
});
When I click on a 'task-item', which has v-on="...
5
votes
1
answer
2k
views
vue.js watch array variable within v-repeat
I am trying to watch a variable within an array that is bound to a repeating element using v-repeat but it doesnt seem to be working. There is a fiddle here
My HTML looks something like this
<...