Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses and challenges
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Calculator

0

101
Views
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 answers
Answer question

0

Try with:

this.$route.query.UserID

and

this.$route.query.Username
7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs