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

163
Views
URL routing functionality to Angular Material Tabs

I'm using angular material tabs to display information in each tab, I want to be able to copy/paste URL to share each tab state to different users.

I managed to change URL depending on which tab I have clicked, but when I paste that URL it doesn't work.

So far code looks like this:

<mat-tab-group (selectedTabChange)="changeRoute($event)">
    <mat-tab *ngFor="let object of Projects">
        <!-- info here -->
    </mat-tab>
</mat-tab-group>

Function:

changeRoute(project: any) {
    const queryParams: Params = { projName: project.tab.textLabel };

    this.router.navigate(
      [],
      {
        relativeTo: this.activatedRoute,
        queryParams: queryParams,
        queryParamsHandling: 'merge',
      });
}
about 4 years ago · Juan Pablo Isaza
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!