docs(router): Fix typo of segment name and odd quote (#11409)

This commit is contained in:
Trotyl Yu 2016-09-08 05:10:19 +08:00 committed by Evan Martin
parent 62af613741
commit cc958c74ad
1 changed files with 2 additions and 2 deletions

View File

@ -411,10 +411,10 @@ export class Router {
* ### Usage
*
* ```
* router.navigate(['team', 33, 'team', '11], {relativeTo: route});
* router.navigate(['team', 33, 'user', 11], {relativeTo: route});
*
* // Navigate without updating the URL
* router.navigate(['team', 33, 'team', '11], {relativeTo: route, skipLocationChange: true });
* router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true });
* ```
*
* In opposite to `navigateByUrl`, `navigate` always takes a delta