import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import {AskComponent} from './ask/ask.component';
import {AskdetailComponent} from './askdetail/askdetail.component';
import {PageTwoComponent} from './page-two/page-two.component';
import {PageThreeComponent} from './page-three/page-three.component';
import {PageFourComponent} from './page-four/page-four.component';
import {PageFiveComponent} from './page-five/page-five.component';
import {PageSixComponent} from './page-six/page-six.component';
import {PageSevenComponent} from './page-seven/page-seven.component';
import {PageEightComponent} from './page-eight/page-eight.component';
import {PageNineComponent} from './page-nine/page-nine.component';
import {PageTenComponent} from './page-ten/page-ten.component';
import {Page11Component} from './page11/page11.component';
import {Page12Component} from './page12/page12.component';
import {Page13Component} from './page13/page13.component';
import {Page14Component} from './page14/page14.component';
import {Page15Component} from './page15/page15.component';
import {Page16Component} from './page16/page16.component';
import {Page17Component} from './page17/page17.component';
const routes: Routes = [
  {
    path: '', redirectTo: '/index', pathMatch: 'full'
  },
  {path:'index', component: AskComponent,
    data: { 
      limbo: '1',
    }
  },
  {path:'question1',component: AskdetailComponent },
  {path:'question2',component:PageTwoComponent},
  {path:'question3',component:PageThreeComponent},
  {path:'question4',component:PageFourComponent},
  {path:'question5',component:PageFiveComponent},
  {path:'question6',component:PageSixComponent},
  {path:'question7',component:PageSevenComponent},
  {path:'question8',component:PageEightComponent},
  {path:'question9',component:PageNineComponent},
  {path:'question10',component:PageTenComponent},
  {path:'question11',component:Page11Component},
  {path:'question12',component:Page12Component},
  {path:'question13',component:Page13Component},
  {path:'question14',component:Page14Component},
  {path:'question15',component:Page15Component},
  {path:'question16',component:Page16Component},
  {path:'question17',component:Page17Component},
  {path:'index', component: AskComponent,
    data: { 
      limbo: '2',
    }
  },
];
@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    RouterModule.forRoot(routes)
  ],
  exports:[
    RouterModule
  ]
})
export class AppRoutingModule { }
