D
D
Denis Bukreev2018-10-06 15:15:02
Vue.js
Denis Bukreev, 2018-10-06 15:15:02

Why does Vue see properties that start with '_' as undefined?

I have an option computed property in computed, but for convenience I need to make it a static duplicate of the _option I defined in data.
But for some reason, when trying to work with this._option, vue sees it as undefined, although it is an object.
Why is that?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-10-06
@denisbookreev

https://github.com/vuejs/vue/issues/2098
https://jsfiddle.net/yarkov_aleksei/vpuq9wb4/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question