Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

120
Views
Angular2 Matrix Parameters

I have this link that work perfect.

<li class="page-item" routerLinkActive="active"><a class="page-link" [routerLink]="['/admin/users']" [queryParams]="{page: 1}">1</a></li>

And generate a url like domain.com/admin/users?page=1

Now I need from code to change the url and make this.

this.router.navigate(['/admin/users', {page: 1}]);

But this generate domain.com/admin/users;page=1

Why? The second method dosn't not recognise the page as param

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

you need to set like this below:

this.router.navigate(['/admin/users'], { queryParams: { page: 1} });
over 4 years ago · Santiago Trujillo Report

0

I found it.

This is different

this.router.navigate(['/admin/users', {queryParams:{page:1}}]);

from that

this.router.navigate(['/admin/users'], {queryParams:{page:1}});
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!