Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
how to create a global variable in vue
Bruce
Programming language:
Whatever
2021-07-21 21:15:24
0
Q:
how to create a global variable in vue
parisa
Code:
Whatever
2021-09-10 10:07:42
// in main =.js Vue.prototype.$appName = 'My App' ////in components console.log(this.$appName)
1
Tags
variable
how
create
var
global
Related
setup vuex
show global variables
lua make variable global
how to define variable in psark
assign global variable inside loop bash
New to Communities?
Join the community