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

187
Views
Clear Auxiliary Route before navigating to another route. @angular-4.0.2

I am using an aux route for popup, toast notifications which clears itself after couple of seconds after successful navigation. during that time the router.url equals to /home(aux:toast), and if navigating to another route in that time the url becomes /detail(aux:toast), but what I want is clear the aux route before navigating to another component.

One solution was when navigating to aux route I did following.

this.router.navigate([{outlets: {aux: 'toast'}}], {skipLocationChange: true})

this didnt changed the address bar url, but router.url still is /home(aux:toast)

and when navigating same thing happens address bar url changes to /detail(aux:toast)

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Will it work?

 router.navigate([{outlets: {aux: null])
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!