Questions tagged as 'vue.js'

0
answers

Problems with a component created with vuejs

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()...
asked by 23.05.2017 / 20:02
2
answers

Vue API client does not respond to the JSON request

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...
asked by 22.05.2017 / 17:19
0
answers

Why does my view change with the "v-bind: href=" "" go blank?

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/...
asked by 09.06.2017 / 15:46
0
answers

import "something" from 'parent-directory / myfile.js "

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'     
asked by 31.05.2017 / 08:21
1
answer

Error importing js into webpack (vue-cli)

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...
asked by 02.04.2017 / 21:41
1
answer

Return empty the value of a text field cloned in Javascript

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....
asked by 19.04.2017 / 19:41
2
answers

Validate the existence of a token in the browser's localStorage

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...
asked by 04.12.2018 / 00:45
2
answers

vee validate does not work

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...
asked by 16.04.2017 / 18:50
2
answers

Modifications to Vue do not work

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...
asked by 28.08.2017 / 15:13
1
answer

how to access property of an object when its name is a number

this is my object my code is this: <table class="table"> <thead> <tr> <th>id</th>...
asked by 30.12.2018 / 22:43