feat(router): update routerLink DSL to handle aux routes

This commit is contained in:
vsavkin
2016-07-12 09:49:55 -07:00
parent 27436270fd
commit ded518d47f
3 changed files with 59 additions and 13 deletions

View File

@ -209,6 +209,9 @@ export class Router {
* // you can collapse static fragments like this
* router.createUrlTree(['/team/33/user', userId]);
*
* // create /team/33/(user/11//aux:chat)
* router.createUrlTree(['/team', 33, {outlets: {"": 'user/11', right: 'chat'}}]);
*
* // assuming the current url is `/team/33/user/11` and the route points to `user/11`
*
* // navigate to /team/33/user/11/details