1

official docs:

Global functions set and delete, and the instance methods $set and $delete. They are no longer required with proxy-based change detection.

Ok, how should I set or delete a data() value now?

1 Answer 1

2

You can set them directly by assigning a value. And you can "delete" them by setting null or undefined. Or if you really want to delete something, doesn't make sense for data() values in my opinion, only for properties of an object, you can use the delete operator: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.