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: '/brokerQry', pathMatch: 'full'
  },
  {path: 'brokerQry', component: BrokerQryComponent},
  {path: 'brokerDetail/:id', component: BrokerDetailComponent}
];
@NgModule({
  declarations: [],
  imports: [
    CommonModule,
    RouterModule.forRoot(routes)
  ],
  exports: [ RouterModule ]
})
export class AppRoutingModule {
}
