angular2 and routing - adding a query parm to child
问题 Wow this.router.navigate(['/services', {outlets: {'servicelistright': ['servicelist']}}]); If I the below to the url I get get the query parm using the below: http://localhost:4200/#/services/(servicelistright:servicelist;type=11) this.route.params.map(params => params['type']) .subscribe(type => { console.log('stupid',type) }); Well I think is just wonderful..wow great... But how on earth do I add the query parm? 1) by using router.navigate this.router.navigate(['/services', {outlets: {