How to make the transition to the current page, but without one of the parameters? For example from www.expample.com/home?id=123&pos=sd&sd=iii make www.expample.com/home?id=123&sd=iii
|
1 answer
There is an issue on this topic, and if I understood everything correctly, then this option should work:
router.navigate(['/'], { queryParams: { hello: 'world' }, queryParamHandling: 'merge' }) => /?hello=world router.navigate(['/'], { queryParams: { hello: null }, queryParamHandling: 'merge' } => / - It works, I figured it out myself, but this option is even simpler. - Nazar Kalytiuk
|