You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
841 B
TypeScript
37 lines
841 B
TypeScript
|
7 years ago
|
import { NgModule } from '@angular/core';
|
||
|
|
import { CommonModule } from '@angular/common';
|
||
|
|
import { FormsModule } from '@angular/forms';
|
||
|
|
import { Routes, RouterModule } from '@angular/router';
|
||
|
|
import { HomeComponent } from './home/home.component';
|
||
|
|
import { DetailsComponent } from './details/details.component';
|
||
|
|
import { IonicModule } from '@ionic/angular';
|
||
|
|
|
||
|
|
import { MyTeamPage } from './my-team.page';
|
||
|
|
|
||
|
|
const routes: Routes = [
|
||
|
|
{
|
||
|
|
path: '',
|
||
|
|
component: MyTeamPage,
|
||
|
|
children:[{
|
||
|
|
path: 'home',
|
||
|
|
component: HomeComponent
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: 'details',
|
||
|
|
component: DetailsComponent
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
];
|
||
|
|
|
||
|
|
@NgModule({
|
||
|
|
imports: [
|
||
|
|
CommonModule,
|
||
|
|
FormsModule,
|
||
|
|
IonicModule,
|
||
|
|
RouterModule.forChild(routes)
|
||
|
|
],
|
||
|
|
declarations: [MyTeamPage,HomeComponent,DetailsComponent]
|
||
|
|
})
|
||
|
|
export class MyTeamPageModule {}
|