I have the following code, which returns a list, which is loaded into a table.
Vue.component('tickets',{
template: '#tickets-template',
data: function(){
return{
tickets:[]
}
},
created:function(){
this.getTickets()...
I am making a request to API with Vue to adapt it with Rail , but when I print the data on the screen it sends me empty, this is the connection to API :
main.js:
var urlAPI = 'xxxxxxxxxx';
new Vue({
el...
I'm making a change of view using vue.js and ruby on rails, at the moment of making the change it only makes the jump of sight but it does not load the view this is the code so that they give an idea:
routes.rb:
get 'programas/:slug/videos/...
I need to import my db.js file from a higher directory, I do not know how to do it and I can not find information on the Internet. What I want is something like this:
import db from './db'
When I try to import the store.js script, I get the error of the image.
I'm using Vue-cli with Vue-router and Vuex.
It is a clean installation after installing vue-cli install vuex.
this is the webpack.base.conf.js configuration...
I am using VUEjs 2. First steps in programming. Any other better way to achieve this would be appreciated. I am creating a form creator here I have the code in jsBin link I need help in creating the checkboxes . Thank you very much in advance....
the question that I have a token saved in the localstorage and what I want is that if that browser token is deleted I automatically redirect to the login window if the need to refresh the window or something else, imagine that I made a manually...
I'm doing tests with vuejs and the library VeeValidate which is to validate fields in a form.
I have an example to validate an email field like the following:
<form>
<div class="form-group" :class="{'has-error': errors.has('e...
The .vue files that are in the resources/assets/js/components box are the system components. It happens to me that when I edit any of those components, no modification appears in the view.
file: resources/assets/js/app.js...