]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: add breaking change not about parent
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Aug 2020 14:21:36 +0000 (16:21 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 4 Aug 2020 14:21:36 +0000 (16:21 +0200)
README.md

index bc5d3b7c5381e14d9a8c7293c61f123a5a85d10d..4955e8dbe2138ef46b6c80f9a7b9edbc6eb3d32a 100644 (file)
--- a/README.md
+++ b/README.md
   </router-view>
   ```
   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