Routing estructurado. Discoteca se muestra sobre tab1 y es un child route. Pero solo se carga después de refrescar.

This commit is contained in:
2021-01-27 13:34:17 +01:00
parent 5f48a57c6f
commit 91e2261246
12 changed files with 120 additions and 257 deletions

View File

@@ -1,12 +1,29 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { Tab1Page } from './tab1.page';
import { PerfilDiscotecaPage } from '../perfil-discoteca/perfil-discoteca.page'
import { PromptEventoPage } from '../prompt-evento/prompt-evento.page'
const routes: Routes = [
{
path: '',
component: Tab1Page,
},
{
path: '',
redirectTo: 'perfil-discoteca',
pathMatch: 'full',
},
{
path: 'perfil-discoteca',
component: PerfilDiscotecaPage
},
{
path: 'prompt-evento',
component: PromptEventoPage
},
];