mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-09 12:05:08 +00:00
(ui/advanced-search) Moved the routing information into the module file
This commit is contained in:
parent
c4914c80b3
commit
747b4f44c8
|
@ -1,5 +1,5 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule } from '@angular/router';
|
import { Route, RouterModule } from '@angular/router';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
import { MatCheckboxModule } from '@angular/material/checkbox';
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
|
@ -8,14 +8,20 @@ import { MatSelectModule } from '@angular/material/select';
|
||||||
import { FuseHighlightModule } from '@fuse/components/highlight';
|
import { FuseHighlightModule } from '@fuse/components/highlight';
|
||||||
import { SharedModule } from 'app/shared/shared.module';
|
import { SharedModule } from 'app/shared/shared.module';
|
||||||
import { AdvancedSearchComponent } from 'app/modules/admin/ui/advanced-search/advanced-search.component';
|
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({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
AdvancedSearchComponent
|
AdvancedSearchComponent
|
||||||
],
|
],
|
||||||
imports : [
|
imports : [
|
||||||
RouterModule.forChild(advancedSearchRoutes),
|
RouterModule.forChild(routes),
|
||||||
MatButtonModule,
|
MatButtonModule,
|
||||||
MatCheckboxModule,
|
MatCheckboxModule,
|
||||||
MatFormFieldModule,
|
MatFormFieldModule,
|
||||||
|
|
|
@ -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
|
|
||||||
}
|
|
||||||
];
|
|
Loading…
Reference in New Issue
Block a user