From 747b4f44c843e09adf7209e64897f9f68d6c7c67 Mon Sep 17 00:00:00 2001 From: sercan Date: Mon, 12 Jul 2021 12:37:06 +0300 Subject: [PATCH] (ui/advanced-search) Moved the routing information into the module file --- .../ui/advanced-search/advanced-search.module.ts | 12 +++++++++--- .../ui/advanced-search/advanced-search.routing.ts | 9 --------- 2 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 src/app/modules/admin/ui/advanced-search/advanced-search.routing.ts diff --git a/src/app/modules/admin/ui/advanced-search/advanced-search.module.ts b/src/app/modules/admin/ui/advanced-search/advanced-search.module.ts index 371a8dd0..4ee8ff9c 100644 --- a/src/app/modules/admin/ui/advanced-search/advanced-search.module.ts +++ b/src/app/modules/admin/ui/advanced-search/advanced-search.module.ts @@ -1,5 +1,5 @@ import { NgModule } from '@angular/core'; -import { RouterModule } from '@angular/router'; +import { Route, RouterModule } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatFormFieldModule } from '@angular/material/form-field'; @@ -8,14 +8,20 @@ import { MatSelectModule } from '@angular/material/select'; import { FuseHighlightModule } from '@fuse/components/highlight'; import { SharedModule } from 'app/shared/shared.module'; import { AdvancedSearchComponent } from 'app/modules/admin/ui/advanced-search/advanced-search.component'; -import { advancedSearchRoutes } from 'app/modules/admin/ui/advanced-search/advanced-search.routing'; + +export const routes: Route[] = [ + { + path : '', + component: AdvancedSearchComponent + } +]; @NgModule({ declarations: [ AdvancedSearchComponent ], imports : [ - RouterModule.forChild(advancedSearchRoutes), + RouterModule.forChild(routes), MatButtonModule, MatCheckboxModule, MatFormFieldModule, diff --git a/src/app/modules/admin/ui/advanced-search/advanced-search.routing.ts b/src/app/modules/admin/ui/advanced-search/advanced-search.routing.ts deleted file mode 100644 index 47df94ab..00000000 --- a/src/app/modules/admin/ui/advanced-search/advanced-search.routing.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Route } from '@angular/router'; -import { AdvancedSearchComponent } from 'app/modules/admin/ui/advanced-search/advanced-search.component'; - -export const advancedSearchRoutes: Route[] = [ - { - path : '', - component: AdvancedSearchComponent - } -];