From 5018b0bf6920e965c7be7f59889f3c28a289b15c Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Tue, 9 Aug 2022 23:02:14 +0400 Subject: [PATCH] Add plugin and watcher docs --- .../105-vue/content/101-advanced-topics/112-plugins.md | 7 ++++++- .../105-vue/content/101-advanced-topics/113-watchers.md | 9 ++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/content/roadmaps/105-vue/content/101-advanced-topics/112-plugins.md b/content/roadmaps/105-vue/content/101-advanced-topics/112-plugins.md index f39a3a0c3..bfe283b86 100644 --- a/content/roadmaps/105-vue/content/101-advanced-topics/112-plugins.md +++ b/content/roadmaps/105-vue/content/101-advanced-topics/112-plugins.md @@ -1 +1,6 @@ -# Plugins \ No newline at end of file +# Plugins + +Plugins are self-contained code that usually add app-level functionality to Vue. + +Free Content +Plugins in Vue.js diff --git a/content/roadmaps/105-vue/content/101-advanced-topics/113-watchers.md b/content/roadmaps/105-vue/content/101-advanced-topics/113-watchers.md index c331c608f..f57f52f07 100644 --- a/content/roadmaps/105-vue/content/101-advanced-topics/113-watchers.md +++ b/content/roadmaps/105-vue/content/101-advanced-topics/113-watchers.md @@ -1 +1,8 @@ -# Watchers \ No newline at end of file +# 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. + +Free Content +Watchers in Vue.js