Skip to content

Commit 398f531

Browse files
committed
docs: should build docs
1 parent d70335e commit 398f531

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/guide/advanced/transitions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Transitions
22

3-
TODO: redo this page once it's good to use in Vue router
4-
53
Since the `<router-view>` is essentially a dynamic component, we can apply transition effects to it the same way using the `<transition>` component:
64

75
```html
8-
<transition>
9-
<router-view></router-view>
10-
</transition>
6+
<router-view v-slot="{ Component }">
7+
<transition>
8+
<component :is="Component" />
9+
</transition>
10+
</router-view>
1111
```
1212

1313
[All transition APIs](https://vuejs.org/guide/transitions.html) work the same here.

0 commit comments

Comments
 (0)