Vue: how to set data as an empty object

Created on 19 Apr 2017  ·  2Comments  ·  Source: vuejs/vue


when i use Vue.set(example1.items, indexOfItem, {})
the example1.items[indexOfItem] will be {type: undefined}
why?

Most helpful comment

sha bi

All 2 comments

Hello, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue - thank you!

sha bi

Was this page helpful?
0 / 5 - 0 ratings