From 97d998f84e1c0e36444941923a624d98048a7046 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 25 Jan 2021 15:00:45 +0100 Subject: [PATCH] docs: addRoutes version --- docs/api/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/api/README.md b/docs/api/README.md index 1a7b352be..8a921b751 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -424,7 +424,7 @@ _DEPRECATED_: use [`route.addRoute()`](#router-addroute) instead. Signature: -```js +```ts router.addRoutes(routes: Array) ``` @@ -432,6 +432,8 @@ Dynamically add more routes to the router. The argument must be an Array using t ### router.addRoute +> New in 3.5.0 + Add a new route to the router. If the route has a `name` and there is already an existing one with the same one, it overwrites it. Signature: @@ -442,6 +444,8 @@ addRoute(route: RouteConfig): () => void ### router.addRoute +> New in 3.5.0 + Add a new route record as the child of an existing route. If the route has a `name` and there is already an existing one with the same one, it overwrites it. Signature: @@ -452,6 +456,8 @@ addRoute(parentName: string, route: RouteConfig): () => void ### router.getRoutes +> New in 3.5.0 + Get the list of all the active route records. **Note only documented properties are considered Public API**, avoid using any other propery e.g. `regex` as it doesn't exist on Vue Router 4. Signature: