We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.26
http://jsbin.com/cavadiwosi/1/edit?html,js,console,output
$vm.$delete('object.key')
$vm.object.key should not exist $vm.$set('object.key', value) seems to work fine
$vm.object.key
$vm.$set('object.key', value)
$vm.object.key doesn't change
The text was updated successfully, but these errors were encountered:
$set and $delete are deprecated in the new version. Use Vue.set and Vue.delete instead.
$set
$delete
Vue.set
Vue.delete
toggleRow: function(row) { key = row.id if (this.selectedRows[key]) { console.log('deleteRow: ', key) Vue.delete(this.selectedRows, key) } else { Vue.set(this.selectedRows, key, row) } }
Sorry, something went wrong.
Note the API only supports deleting the vm's own keys. Also, prefer Vue.delete.
@kingdaro vm.$set and $vm.delete does not seem to be deprecated in actual version 2.x https://vuejs.org/v2/api/#vm-set :)
No branches or pull requests
Vue.js version
1.0.26
Reproduction Link
http://jsbin.com/cavadiwosi/1/edit?html,js,console,output
Steps to reproduce
$vm.$delete('object.key')
What is Expected?
$vm.object.key
should not exist$vm.$set('object.key', value)
seems to work fineWhat is actually happening?
$vm.object.key
doesn't changeThe text was updated successfully, but these errors were encountered: