Angular2: 's problem about Auxiliary routing aux

now my screen uses auxiliary routing, but I don"t want to load it all

/ / main.component.html

<div id="main">
  <router-outlet></router-outlet>
  <router-outlet name="pagesoutlet"></router-outlet>
  <router-outlet name="aux"></router-outlet>
</div>
this.router.navigate([{ outlets: { pagesoutlet: ["A"], aux: ["aux"]} }]
this.router.navigate([{ outlets: { pagesoutlet: ["B"]} }]

Why do I also load the content of the secondary route when I load the B screen?

Mar.15,2022

use if judgment to control the deletion and addition of secondary routes.

Menu