Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

247
Views
how to use properties file in vueJs?

hi is there any way to store most usable values and properties in a file like yml - property file and ...

and use them in vueJs components

in java we have spring and it helps us using yml and property file properties in project

is there any thing same in vueJs

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

In vueJs you can use .env files easily. In you .env file you can define properties starting with VUE_APP_ and them will be available for you in the whole app.

Ex: .env

    VUE_APP_API_URL=http://localhost:5000

To read this property just do it.

process.env.VUE_APP_API_URL

More info here.

about 4 years ago · Juan Pablo Isaza Report

0

you can build an object in a .js file and import that obj as your configuration.
no file system exists in pure front-end
or you can get your configuration from a backend api

about 4 years ago · Juan Pablo Isaza Report

0

You can create a normal JS file and import in the Vue.

Or you might need to read about .env file because between those 2 files you gonna need for constants

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!