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

import { ShareModule } from '@share/share.module';
import { AuthGuard } from '@global/guard/auth-guard';
import {AppMenuModule} from '@widget/app/app-index-view2-appmenu/app-index-view2-appmenu.module';
import {AppIndexView2Page} from './app-index-view2.page'


const routes: Routes = [
  {
    path: '',
    redirectTo: 'demo_appindexview2',
    pathMatch: 'full'
  },
  {
    path: 'demo_appindexview2',
    component: AppIndexView2Page,
    canActivate: [AuthGuard],
    data: { backendurl: '/Mob/Demo/AppIndexView2.do', accessMode: 0 },
    children: [


    ]
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(routes)
  ],
  exports: [
    RouterModule
  ]
})
export class AppIndexView2RouteModule {}

@NgModule({
  imports: [
    IonicModule,
    CommonModule,
    FormsModule,
    ShareModule,
    AppIndexView2RouteModule,
    AppMenuModule,
  ],
  declarations: [ AppIndexView2Page]
})
export class AppIndexView2Module {}
