Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

102
Vistas
Fill input fields based on URL / BootstrapVue

I'm using BootstrapVue. Now I try to fill my input fields based on my URL..

My code:

<template>
  <div class="col-md-6 mt-3">
    <div class="mt-2">ID</div>
    <b-form-input type="number"></b-form-input>
    <div class="mt-2">Name</div>
    <b-form-input type="text"></b-form-input>
  </div>
</template>

my URL: localhost:8080/?UserID=1234&Username=Peter_Parker

Now it should fill my UserID b-form-input with 1234 and my Username b-form-input with Peter Parker

Is this possible? Thanks in advance !

7 months ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try with:

this.$route.query.UserID

and

this.$route.query.Username
7 months ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos