admin管理员组

文章数量:1122832

I have a Vue.js application and I would like to know how to read and use the external properties file. Then I need to use this properties inside the components.

I would also like to know if is it possible in Vue.js to use service files as per Angular and call them inside the components. I think I need to use the service because it should be used by all components.

For Example: I have Vue.js component and inside it I need to retrieve a property from the external file. I would like to call the service function for getting the property by passing its name.

I want to specify that I cannot use .env or any of its variations like .env.production for this.

本文标签: javascriptVuejsHow to read external properties file and serve into componentsStack Overflow