I can create a constant through a store in my vuejs application, but i don\'t think it is a good practice.what is other way to do the same?
try this instead
//conts.js const test = "texte"; export default test
//component.vue import test from "./conts"; {{example}} export default { data: function(){ return { example: test } } }