From: Eduardo San Martin Morote Date: Tue, 4 Aug 2020 14:21:36 +0000 (+0200) Subject: docs: add breaking change not about parent X-Git-Tag: v4.0.0-beta.6~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=029622ba3617ff3c23237e8929ea2690eaec9580;p=thirdparty%2Fvuejs%2Frouter.git docs: add breaking change not about parent --- diff --git a/README.md b/README.md index bc5d3b7c..4955e8db 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,10 @@ ``` 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. +- `parent` is removed from Route locations (`this.$route` and object returned by `router.resolve`). You can still access it via the `matched` array: + ```js + const parent = this.$route.matched[this.$route.matched.length -1] + ``` ### Typings