How to navigate relative from /questions/123/step1 to /questions/123/step2 within a component using Router without string concatenation an
/questions/123/step1
/questions/123/step2
Router
You may use below,
Assumption is questions is loaded into your primary router-outlet
questions
router-outlet
this.router.navigate([ '/', { outlets: { primary: [ // below may be replaced with different variables 'questions', '123', 'step2' ] } } ])
Hope this helps!!