DEV Community

ChuangWANG
ChuangWANG

Posted on

20210505

// in main =.js
Vue.prototype.$appName = 'My App'

////in components 
 console.log(this.$appName)

Enter fullscreen mode Exit fullscreen mode

Top comments (0)