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

Related issues

ShuvoHabib picture ShuvoHabib  路  40Comments

wenLiangcan picture wenLiangcan  路  39Comments

RashadSaleh picture RashadSaleh  路  51Comments

cherry-geqi picture cherry-geqi  路  35Comments

karevn picture karevn  路  42Comments