import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {RouterModule, Routes} from '@angular/router';
import {BrokerQryComponent} from './broker-qry/broker-qry.component';
import {BrokerDetailComponent} from './broker-detail/broker-detail.component';
const routes: Routes = [
  {
    path: '', redirectTo: '/index', pathMatch: 'full'
  },
  {path: 'index', component: BrokerQryComponent},
  {path: 'brokerDetail/:id', component: BrokerDetailComponent}
];
@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    RouterModule.forRoot(routes)
  ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {
}
