108,131 questions
2
votes
1
answer
3k
views
Vue.js - Using v-model on cloned inputs
I am very new to Vue. I have a text input which I am cloning using jquery. However v-model does not take the input from the cloned inputs. It takes input only from the first input.
$(document).ready(...
2
votes
1
answer
6k
views
Vuejs select dynamic (multiple) elements
I am using VueJS with a PHP application. I have multiple posts with comments for each of them. Each of them has a class answer_comment. I am trying to make VueJS work for all of them (it currently ...
2
votes
1
answer
6k
views
VueJs: Focus on Input using v-el Directive inside v-repeat Directive
I display a list by using the v-repeat directive.
http://jsfiddle.net/ftc9ev7p/1/
Please notice the dynamically created argument of the v-el directive, which is made of
v-el="inputField{{task.id}}"...
0
votes
2
answers
2k
views
VueJS and Laravel: DELETE Request turns into MethodNotAllowedHttpException
I am trying to make a DELETE Request to my Laravel API.
I have a todo-App and a tasks.js with a removeTask Method that gets the task object passed as an argument.
removeTask: function(task)
{
...
2
votes
2
answers
10k
views
Vue.js-resource: http request with api key (Asana)
I'm trying to extract some projects from the Asana api with vue-resource (https://github.com/vuejs/vue-resource), a Vue.js add-on that makes ajax calls simple. I'm using an api key to access Asana, ...
36
votes
4
answers
58k
views
How to Two-way Data Binding Between Parents and grandchildren in Vue.js
I faced a problem, I solve it by cookies but I want to solve the problem without cookies. I have a component which called app-header and It has another component which called outmodal.
Now, My first ...
1
vote
4
answers
3k
views
Javascript: Push Filtered Array to Existing Array
I have a small todo app here:
http://jsfiddle.net/ccLm46sn/
Two arrays, one contains completed tasks, the other archived tasks.
Whenever I execute the function archiveCompleted I want all completed ...
7
votes
1
answer
10k
views
How to extend a vuejs with a method?
I'm currently trying to wrap my head around how to extend a vuejs instance. Specifically I want to separate an instance, so that I can reuse the base of an instance (the element and the data). I ...
2
votes
3
answers
2k
views
Vue.js block repeat table rows doesn't work in IE
I would like to repeat adding table rows using a template tag with vue.js, but it doesn't work in IE11. Here is the code.
<table border="1">
<tr>
<td rowspan="2">ID</td>
...
19
votes
3
answers
49k
views
Submitting form in Vue.js with ajax
I'm really stuck on how I would work with submitting a form that makes an ajax request using Vue.js and vue-resource then using the response to fill a div.
I do this from project to project with js/...
0
votes
2
answers
3k
views
vuejs router - Require is not defined
I am trying to get started with this: https://github.com/vuejs/vue-router
I have cloned the package, and followed the instructions to build:
npm install
npm run build
But I am receiving a "Require ...
8
votes
4
answers
8k
views
VueJS: How to Access the Previous Item in v-repeat
I have a table that fetches some JSON from a Laravel API to populate the rows. I am using VueJS and the v-repeat:
<tbody>
<tr v-repeat="entry: entries">
<td>@{{ entry.id }} &...
2
votes
2
answers
3k
views
Referencing v-model
I am trying to reference a v-model in one of my html files.
I've gone ahead and created a jsbin with a small example of what I'm trying to achieve:
https://jsbin.com/saqirekasa/edit?html,js,output
...
3
votes
1
answer
1k
views
Dynamically listen for v-on on vuejs
I'm using a filter returning plain HTML in vuejs. And in this HTML there is a v-on tag.
How can I make vuejs to parse again HTML to detect new content/events listeners/ etc. ?
Thanks
0
votes
1
answer
2k
views
Vue.js and Laravel integration issue
Ran into a bit of a problem with combining Laravel and Vue.js to populate a table.
Essentially, I was trying to use the v-repeat property in combination with a http:get request using the vue-...
67
votes
11
answers
49k
views
Conflict on Template of Twig and Vue.js
I'm doing a program using Slim 2 that uses Twig as my templating engine. so It uses the syntax {{ foo }} in php file. On the other hand, I'm using vue.js, it also uses {{ bar }}.
E.g.
I'm gonna do ...
0
votes
1
answer
770
views
Open dropdown based on selected option
Currently the onClick method is toggling open class, showing 3 dropdown at one time.
I want to open the dropdown for the selected option, 1 dropdown at a time.
methods: {
onClick: function(...
1
vote
1
answer
601
views
Why doesn't my search work when I use Vue.js?
I'm making a simple search engine for my Laravel 5 app. As it's only small, I'm just using a FULLTEXT index on my main table. I'm trying to use Vue.js to avoid a page reload.
In my SearchController I ...
0
votes
1
answer
264
views
Vue.js - Force a filter application
I wanted to apply a filter on an object given to v-repeat to get only some components.
However, I can't find a way to apply it before its conversion into an array of { $key: '...', $value: '...' }.
...
3
votes
1
answer
1k
views
Use predefined vue.js directive with custom directive
Suppose I have a custom directive that fetches an array result from certain location , How could I possibly use v-repeat alongside my directive internally rather than separately calling v-repeat ...
15
votes
4
answers
24k
views
How to unbind an array copy in Vue.js
I am trying to copy one array to another and use this like the new array without any changes to old one:
<div id="app">
<div class="form-group">
<label>Test input</...
1
vote
1
answer
229
views
Where should I instantiate my cart with PHPCart in Laravel 5?
I'm making a simple shopping cart system using Laravel 5 and Vue.js. The user clicks the add to basket button and Vue sends an AJAX request to the cart controller. That part works fine.
The ...
21
votes
4
answers
64k
views
Pass selected value to vuejs function
How can I pass selected value to a vuejs function?
v-model won't help I guess.
I need to set values for the filter after
item: items | orderBy sortKey reverse
where reverse and sortKey are dynamic ...
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 ...
0
votes
2
answers
1k
views
JSON console show the object, but gives undefined property error after with Vue.js
Ok so firstly I'm grabbing the json object from the DB which is in this format...
{
"position": "slider",
"size": "large",
"type": "slider",
"params":[{
"id": "10",
"...