Closed lilchow closed 9 years ago
what would be the keypath syntax for vm.$set(keypath,value) if I want to set the value of the levelB property of the data object? Is it "levelA.levelB" or some other thing?
vm.$set(keypath,value)
levelB
data={ levelA: {levelB : "ab" } };
vm.$set('levelA.levelB',value) or vm.levelA.$set('levelB',value)
vm.$set('levelA.levelB',value)
vm.levelA.$set('levelB',value)
what would be the keypath syntax for
vm.$set(keypath,value)
if I want to set the value of thelevelB
property of the data object? Is it "levelA.levelB" or some other thing?data={ levelA: {levelB : "ab" } };