import { Routes, RouterModule } from '@angular/router';
import { NgModule } from '@angular/core';
import { WorkareaComponent } from './workarea/workarea.component';
import { HomeComponent } from './home/home.component';
import { CounterComponent } from './counter/counter.component';
import { FetchDataComponent } from './fetch-data/fetch-data.component';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
const routes: Routes = [
  {
    path: '',
    children: [
      { path: '', component: WorkareaComponent},
      { path: 'workarea/:token/:userid/:transid/:pdid/:enviroment', component: WorkareaComponent},
      { path: 'home', component: HomeComponent},
      { path: 'counter', component: CounterComponent},
      { path: 'fetch-data', component: FetchDataComponent},
    ]
  }
];


@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule],
  providers: [{ provide: LocationStrategy, useClass: HashLocationStrategy }]
})
export class AppRoutingModule { }
