Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

258
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda