]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: should build docs
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 27 Aug 2020 14:15:10 +0000 (16:15 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 27 Aug 2020 14:15:10 +0000 (16:15 +0200)
docs/guide/advanced/transitions.md

index ed4d68282c533b11d196bcaf0809617d9a27d141..9d525525988525e29d716154b1b633ab12e8f400 100644 (file)
@@ -1,13 +1,13 @@
 # Transitions
 
-TODO: redo this page once it's good to use in Vue router
-
 Since the `<router-view>` is essentially a dynamic component, we can apply transition effects to it the same way using the `<transition>` component:
 
 ```html
-<transition>
-  <router-view></router-view>
-</transition>
+  <router-view v-slot="{ Component }">
+    <transition>
+      <component :is="Component" />
+    </transition>
+  </router-view>
 ```
 
 [All transition APIs](https://vuejs.org/guide/transitions.html) work the same here.