docs(router): Explanation in code should be comment (#10790)

This commit is contained in:
Trotyl Yu 2016-08-17 10:38:23 +08:00 committed by vikerman
parent ed639784d4
commit 2451eb9ded
1 changed files with 2 additions and 2 deletions

View File

@ -222,8 +222,8 @@ export class Router {
* // you can collapse static segments like this (this works only with the first passed-in value):
* router.createUrlTree(['/team/33/user', userId]);
*
* If the first segment can contain slashes, and you do not want the router to split it, you
* can do the following:
* // If the first segment can contain slashes, and you do not want the router to split it, you
* // can do the following:
*
* router.createUrlTree([{segmentPath: '/one/two'}]);
*