docs(router): Explanation in code should be comment (#10790)
This commit is contained in:
parent
ed639784d4
commit
2451eb9ded
|
@ -222,8 +222,8 @@ export class Router {
|
||||||
* // you can collapse static segments like this (this works only with the first passed-in value):
|
* // you can collapse static segments like this (this works only with the first passed-in value):
|
||||||
* router.createUrlTree(['/team/33/user', userId]);
|
* router.createUrlTree(['/team/33/user', userId]);
|
||||||
*
|
*
|
||||||
* If the first segment can contain slashes, and you do not want the router to split it, you
|
* // If the first segment can contain slashes, and you do not want the router to split it, you
|
||||||
* can do the following:
|
* // can do the following:
|
||||||
*
|
*
|
||||||
* router.createUrlTree([{segmentPath: '/one/two'}]);
|
* router.createUrlTree([{segmentPath: '/one/two'}]);
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue