Methods are just static functions that run once called upon. You can pass in arguments, and they can return a value but are not required to.
Computed properties will update automatically once their dependencies change. They don't accept any arguments and must return a single value.
Watch functions allow you to monitor a single property and do stuff once it changes. They don't return any value.
That's the way I see it anyway. 🙂
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Methods are just static functions that run once called upon. You can pass in arguments, and they can return a value but are not required to.
Computed properties will update automatically once their dependencies change. They don't accept any arguments and must return a single value.
Watch functions allow you to monitor a single property and do stuff once it changes. They don't return any value.
That's the way I see it anyway. 🙂