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
版权声明:本文标题:javascript - Vue.js - How to read external properties file and serve into components - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736308950a1933843.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论