1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-03 06:12:53 +02:00

Add plugin and watcher docs

This commit is contained in:
Kamran Ahmed
2022-08-09 23:02:14 +04:00
parent a5933c10ef
commit 5018b0bf69
2 changed files with 14 additions and 2 deletions

View File

@@ -1 +1,6 @@
# Plugins
# Plugins
Plugins are self-contained code that usually add app-level functionality to Vue.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://vuejs.org/guide/reusability/plugins.html'>Plugins in Vue.js</BadgeLink>

View File

@@ -1 +1,8 @@
# Watchers
# Watchers
Computed properties allow us to declaratively compute derived values. However, there are cases where we need to perform "side effects" in reaction to state changes - for example, mutating the DOM, or changing another piece of state based on the result of an async operation.
With Composition API, we can use the watch function to trigger a callback whenever a piece of reactive state changes.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://vuejs.org/guide/essentials/watchers.html'>Watchers in Vue.js</BadgeLink>