From: Eduardo San Martin Morote Date: Fri, 31 Jul 2020 17:33:40 +0000 (+0200) Subject: docs: add note about transition and keepalive X-Git-Tag: v4.0.0-beta.5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=910634e659be83eabf65b2215e201cdea1c02761;p=thirdparty%2Fvuejs%2Frouter.git docs: add note about transition and keepalive --- 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