#How To Set A Default GET Query Parameter?
9 messages · Page 1 of 1 (latest)
In routes just set that orders goes order page 1
Ah nvm I fixed it with this.router.navigate(['/orders'], { queryParams: { page: 1 } });
if i put it in app.routing it doesnt work
No I am port that orders to order/page1
Get the value of the page query parameter. If it's null, set it to 1, i.e. do as if its value was 1 and not null.
i fixed it already with this: #1021091031476875374 message
😄
That doesn't do what you asked. If the user types /orders in the address bar, you won't hava a value for the page parameter