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:
@@ -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
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user