Skip to content

Commit 97d998f

Browse files
committed
docs: addRoutes version
1 parent c128b60 commit 97d998f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/api/README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -424,14 +424,16 @@ _DEPRECATED_: use [`route.addRoute()`](#router-addroute) instead.
424424
425425
Signature:
426426
427-
```js
427+
```ts
428428
router.addRoutes(routes: Array<RouteConfig>)
429429
```
430430
431431
Dynamically add more routes to the router. The argument must be an Array using the same route config format with the `routes` constructor option.
432432
433433
### router.addRoute
434434
435+
> New in 3.5.0
436+
435437
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.
436438
437439
Signature:
@@ -442,6 +444,8 @@ addRoute(route: RouteConfig): () => void
442444
443445
### router.addRoute
444446
447+
> New in 3.5.0
448+
445449
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.
446450
447451
Signature:
@@ -452,6 +456,8 @@ addRoute(parentName: string, route: RouteConfig): () => void
452456
453457
### router.getRoutes
454458
459+
> New in 3.5.0
460+
455461
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.
456462
457463
Signature:

0 commit comments

Comments
 (0)