Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
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 Respuestas
Responde la pregunta

0

Will it work?

 router.navigate([{outlets: {aux: null])
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda