import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import {AccrualService} from './services/accrual.service';
import { IonicModule } from '@ionic/angular';

import { AccrualBalancesPage } from './accrual-balances.page';
import { HomeComponent } from './home/home.component';
const routes: Routes = [
  {
    path: '',
    component: AccrualBalancesPage,
    children: [
      {
          path: 'home',
          component: HomeComponent
      }
    ],
  }
];

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    IonicModule,
    RouterModule.forChild(routes)
  ],
  declarations: [AccrualBalancesPage, HomeComponent],
  providers:[AccrualService]
})
export class AccrualBalancesPageModule {}
