import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';

import { IonicModule } from '@ionic/angular';

import { AttendancePage } from './attendance.page';
import { HomeComponent } from './home/home.component';

const routes: Routes = [
  {
    path: '',
    component: AttendancePage,
    children: [
      {
          path: 'home',
          component: HomeComponent
      }
    ]
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes)
  ],
  declarations: [AttendancePage, HomeComponent]
})
export class AttendancePageModule {}
