From 910634e659be83eabf65b2215e201cdea1c02761 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 31 Jul 2020 19:33:40 +0200 Subject: [PATCH] docs: add note about transition and keepalive --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 397a0df6..3422404f 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,17 @@ }) ``` - The object returned in `scrollBehavior` is now similar to [`ScrollToOptions`](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions): `x` is renamed to `left` and `y` is renamed to `top`. +- `transition` and `keep-alive` must now be used **inside** of `RouterView` via the `v-slot` API: + ```vue + + + + + + + + ``` + See more on the [KeepAlive](https://github.com/vuejs/vue-router-next/blob/master/e2e/keep-alive/index.ts) and the [Transition](https://github.com/vuejs/vue-router-next/blob/master/e2e/transitions/index.ts) examples. ### Typings -- 2.47.3