Questions tagged as 'vue.js'

2
answers

How to pass data from one view to another with Vue and axios in Laravel

I'm working with Laravel and I have this link in view A <div id="app"> <a href="{{ route('ministries.index') }}">Enlace</a> </div> and I want to click on that link to direct it to view B and show me the results...
asked by 14.02.2018 / 02:37
1
answer

Show an image for an order GET Ajax (axios) of vue js 2 and show it by html 5

This is my code I want to make a call get of axios by vue and that after having the image that shows it in html getImage(param) { axios.get(param) .then((resp) => { return this.image = resp.d...
asked by 23.06.2017 / 00:23
1
answer

During testing, the instance of a class returns undefined

A bit of context.    I'm creating a plugin using tests and when using the instance of a class, it just does not pass the simplest test.       The plugin is an adapted copy of the Satellizer a well-known module angular that manages ac...
asked by 11.04.2017 / 21:09
3
answers

Limit maxlength in vue.js

I want to limit the input field with a maxlength , I've tried like this; <input class="input" type="number" v-model.number="numero" maxlength="10"> but vue.js does not recognize it. <input class="input" v-model.number="numer...
asked by 08.04.2017 / 01:58
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
1
answer

How to listen when the html tag changes?

My problem is as follows. I use vue and I need to know the language in which the app is located. <html lang="es"> When the language changes in the app I need to notice that change in an unrelated instance. Try this does not work...
asked by 12.12.2018 / 19:53
3
answers

How can I read a key that is formed by id _ name in javascript?

I try to read a variable from a json. But this variable has the following syntax. "id_nombre":{ Variables, } Looking at a serious example: 0_seccion:{ variables } My problem is that I do not know how to access this json. already try wi...
asked by 27.09.2018 / 21:00
2
answers

How to save an image from vue

Hi, I'm uploading a photo from Vue but I put it in base64 then try to decode it to deal with the image. that's how I have my driver public function Update (ValidatePersonalRequest $request) { if($request->foto) {...
asked by 18.11.2018 / 19:16
1
answer

How can I print with a list from 2018 to 1920?

I try to print a list with v-for that does the same thing as a for cycle like this for(n=2018; n>=1920; n--) This prints a list from 2018 to 1920 The way I have it now is v-for="n in 2018)" v-if='n >= 120' But obviously the li...
asked by 10.10.2018 / 17:28
1
answer

Firebase Hosting with Vue.js

I have a problem with Firebase Hosting when uploading my Vue.js project that connects with firebase The architecture of the files is as follows. and the file firebase.json is the following or in code { "hosting": {...
asked by 12.09.2018 / 00:41