How vue observes anything in a component
This article mainly shows you "vue how to observe any content in the component", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "vue how to observe any content in the component" this article.
Observe anything in the component
Any response in your component can be observed:
Export default {computed: {someComputedProperty () {/ / update computing props},}, watch: {someComputedProperty () {/ / do something} when the calculated prop is updated
You can read:
Computational props
Props
Nested valu
If you use a composite API, you can monitor any value as long as it is a ref or reactive object.
This is all the content of the article "how vue observes anything in the component". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!