Created
October 7, 2019 21:27
-
-
Save RuslanHolovko/c523a49871f4ffb602d5e761d6a9bb7e to your computer and use it in GitHub Desktop.
Add reactive property to object (Vue)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//reactive property | |
this.$set(this.user, 'position', 'HR') | |
//not reactive | |
Object.assign(this.user, {'Weight' : '100'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment