vm.$options
-
Type:
Object
-
Read only
-
Details:
The instantiation options used for the current Vue instance. This is useful when you want to include custom properties in the options:
123456new
Vue({
customOption:
'foo'
,
created:
function
() {
console.log(
this
.$options.customOption)
// -> 'foo'
}
})
Please login to continue.