(ui/advanced-search) Moved the routing information into the module file

This commit is contained in:
sercan 2021-07-12 12:37:06 +03:00
parent c4914c80b3
commit 747b4f44c8
2 changed files with 9 additions and 12 deletions

View File

@ -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,

View File

@ -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
}
];