Is it possible to specify the router outlet while programatic routing in angular?
this.router.navigate(['products/item'])
Like this:
this.router.navigate(['products/item'], {outlet: 'items-outlet'})
Cause I've some named outlets.
Without any name outlet my routing is working fine.
But when I add name to my outlets, then it spits out cannot find routes matching 'products/items'.
Adding router outlet name is mandatory.
It will be a great help if I can specify the outlet like this: (or any other workaround)
Like this:
this.router.navigate(['products/item'], {outlet: 'items-outlet'})