As pointed out in vuejs/router#1930
```js
router.addRoute({ path: '/about', name: 'about', component: About })
- // this will remove the previously added route because they have the same name and names are unique
+ // this will remove the previously added route because they have
+ // the same name and names are unique across all routes
router.addRoute({ path: '/other', name: 'about', component: Other })
```
In both cases, the router will navigate to the path `/user/erina`.
Full example [here](https://github.com/vuejs/vue-router/blob/dev/examples/named-routes/app.js).
+
+Each name **must be unique** across all routes. If you add the same name to multiple routes, the router will only keep the last one. You can read more about this [in the Dynamic Routing](../advanced/dynamic-routing.md#removing-routes) section.
alias?: string | string[]
/**
- * Name for the route record.
+ * Name for the route record. Must be unique.
*/
name?: RouteRecordName