108,131 questions
2
votes
1
answer
3k
views
Load ChartJS via VueJS - ChartJS empty and 0px dimension
Alright, so I am trying to create a ChartJS instance via VueJS so that I could easily update its data via AJAX requests inside the component.
Basically it is working, the ChartJS instance gets ...
2
votes
1
answer
2k
views
How to ignore custom tokens using curly braces in vue.js
There is a vuejs component called my-comp with a given data that I want to iterate on its elements and print them:
<my-comp json-data='[{"id":1,"text":"Hello"},{"id":2,"text":"World"}]' inline-...
0
votes
1
answer
92
views
Acquire data from other Vue.js Scripts
So I basicly have 2 scripts. A user script that handles the user login, check ect. And a script that handle actions on a page. Now I want to be able to show a button controlled by the page script, but ...
5
votes
1
answer
6k
views
How could Vue.js have templateUrl configure just like Angular.js do?
I love the simplicity of Vue.js, but I don't want to complexify it with browserify or webpack. I prefer something like templateUrl in Angular, so I can serve the partial page(usually a component) with ...
3
votes
1
answer
7k
views
Sorting a Table with Vue
If I ever want to sort a table with Vue.js, should I always get the data to be sorted received in an ajax request ? for the v-repeat to work? or which would be the way to make it with data coming from ...
26
votes
1
answer
23k
views
vuejs: Is there a way to access router.go() inside a component?
I want to call router.go inside a component
currently i have set window.router = router // so the code works
index.js
const App = Vue.extend(require('./views/app.vue'))
router.start(App, '#app')
...
3
votes
1
answer
1k
views
How to set min and max boundaries for a js variable?
I am currently rendering a pagination with vuejs. This is for my algolia data.
I am checking if a user pressed on a previous button/next button or on a direct input(1,2,3, etc.)
setPage: ...
2
votes
2
answers
4k
views
VueJS and vue-router: view data does not update when using v-link
I am trying to link between VueJS components using vue-router's v-link. When a link is clicked, the URL is updated, but the view data does not update unless the page is manually refreshed.
Some ...
1
vote
2
answers
3k
views
Vuejs Sweetalert Uncaught TypeError
I'm having Uncaught TypeError: this.fetchReports is not a function error when the function this.fetchReports is called it seems that I have access to this function from swal object, how can I make ...
0
votes
1
answer
523
views
How can I get the new offset of a moved element using Javascript?
I have an html table of data and each item in a row has a list_position field which can be changed and then all of the items will be reordered to match the change on that item.
If I have a long list ...
4
votes
5
answers
9k
views
Bootstrap selectpicker VueJS directive
I'm trying to build a custom directive for Bootstrap that makes a <select> input into a "selectpicker" from Bootstrap selectpicker
Also I would like this directive to use the default options ...
-1
votes
2
answers
590
views
Sorting array on a custom filter
I have a custom filter called removeIndex which removes the first index of an array. I want to modify that so it first sorts the array, and then removes the first index. However, when I try to do ...
0
votes
1
answer
1k
views
How to compare value of property in vue.js
I want to use the if-directive in vue.js to determine which datafield should be shown in each table row:
<tr v-repeat="model">
<td>@{{ title }}</td>
<td>@{{ ...
2
votes
1
answer
2k
views
Vue.js - Vue-router and subroutes issue
I'm trying to get Vue.js with the vue-router working. In my example I'd like to add a subroute/nested route to a view/template, but I get an "invalid expresion" error.
Here is the jsFiddle example: ...
11
votes
3
answers
17k
views
Implementing Vue.js + DataTables properly
Im trying to implement Vue.js + jQuery's DataTables but there's a weird things happening.
Check this fiddle on firefox (not working on chrome):
http://jsfiddle.net/chrislandeza/xgv8c01y/
when I ...
17
votes
4
answers
15k
views
Vue.js empty filter results
In Vue, I have to filter through some data:
<input v-model="search">
<ul>
<li v-repeat="photo in photos | filterBy search in 'name'">
<img src="{{ photo.src }}" alt="{...
1
vote
2
answers
2k
views
VueJs How to duplicate object from v-repeat?
Functionality allows you to add/delete description, title and time for the event.
I can not deal with the duplication(cloning) of the object which is created through v-model = (event.name, event....
0
votes
1
answer
529
views
When should we use Vue.js's component
When I study the feature of Vue.js's component system. I feel confused when and where should we use this? In Vue.js's doc they said
Vue.js allows you to treat extended Vue subclasses as reusable
...
1
vote
4
answers
4k
views
Material Design Lite Table - Adding Rows Dynamically Breaks Format
This is the markup for the checkbox using material-design-lite:
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox">
<input type="checkbox" id="checkbox" class="...
0
votes
1
answer
301
views
Vue.js won't adhere to multiple instances
I have tried creating a like button for comments using Vue.js. However, the like button only seems to work on one comment (first) while the second comment appears as if it doesn't even recognize Vue....
2
votes
1
answer
11k
views
Conditional validation in VueJS
I am using VueJS with vue-validator and I have been struggling for hours to do simple conditional validation. The example provided in the documentation does not seem to work, at least not in my case.
...
1
vote
2
answers
4k
views
Vue.js Retrieving Remote Data for Options in Select2
I'm working on a project that is using Vue.js and Vue Router as the frontend javascript framework that will need to use a select box of users many places throughout the app. I would like to use ...
18
votes
5
answers
32k
views
How to pass url parameters to Vuejs
I'm building an app with laravel and VueJs and I was wondering how to pass a url parameter like the user slug or the user id to vuejs in a proper way to be able to use that parameter for making ajax ...
1
vote
1
answer
277
views
AngularJS equivalent of v-el
I just found the v-el directive in Vue.js which is a great convenience for DOM-manipulation.
F.ex. I could mark an element with it:
<button v-el="getCustomerButton">Get customers</button>...
5
votes
3
answers
4k
views
Vue js and Data Table Panigation not Working
Ok, so unfortunately I have come across this issue. So first a little about specs of my app.
I am using
Vue.js
vue-resource.js
jQuery
jQuery DataTables
Now because I'm grabbing the data through vue-...