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

200
Views
<ion-router-outlet> y <ion-header> se superponen

Tengo dos enrutadores de iones anidados. La razón por la que uso dos salidas de enrutador es que todas las páginas, excepto la página de inicio de sesión, tienen un menú lateral y un encabezado en mi aplicación.

aplicación.componente.html

 <ion-app> <ion-router-outlet></ion-router-outlet> </ion-app>

app.routing.module.ts

 ... { path: 'login', loadChildren: () => import('./pages/login/login.module').then((m) => m.LoginPageModule), canActivate: [IsLoggedGuard], }, { path: 'home', loadChildren: () => import('./pages/home/home.module').then((m) => m.HomePageModule), canActivate: [AuthGuard] }, ...

home.routing.module.ts

 ... const routes: Routes = [ { path: '', component: HomePage, children: [ { path: 'listall', component: ListAllComponent, }, { path: 'create', component: CreateComponent, }, ], }, ]; ...

inicio.pagina.html

 <ion-menu> ... </ion-menu> <ion-header [translucent]="true" mode="ios"> <ion-toolbar> <ion-menu-button slot="start" mode="md"></ion-menu-button> </ion-toolbar> </ion-header> <ion-router-outlet id="main"></ion-router-outlet>

El problema es que el encabezado se superpone al componente que viene con la salida del enrutador. Entonces, si no agrego margin-top al componente llamado, no puedo ver el contenido anterior. Creo que esta no es la solución correcta, estoy haciendo algo mal. ¿Dónde estoy haciendo mal? imagen

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!