Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit 6b18b14

Browse files
committed
chore: cleanup some imports
1 parent 37de936 commit 6b18b14

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/app/app-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { GridGraphqlComponent } from './examples/grid-graphql.component';
1717
import { GridGraphqlWithoutPaginationComponent } from './examples/grid-graphql-nopage.component';
1818
import { GridGroupingComponent } from './examples/grid-grouping.component';
1919
import { GridHeaderButtonComponent } from './examples/grid-headerbutton.component';
20+
import { GridHeaderFooterComponent } from './examples/grid-header-footer.component';
2021
import { GridHeaderMenuComponent } from './examples/grid-headermenu.component';
2122
import { GridLocalizationComponent } from './examples/grid-localization.component';
2223
import { GridMenuComponent } from './examples/grid-menu.component';
@@ -33,7 +34,6 @@ import { GridTradingComponent } from './examples/grid-trading.component';
3334
import { GridTreeDataHierarchicalComponent } from './examples/grid-tree-data-hierarchical.component';
3435
import { GridTreeDataParentChildComponent } from './examples/grid-tree-data-parent-child.component';
3536
import { SwtCommonGridTestComponent } from './examples/swt-common-grid-test.component';
36-
import { GridHeaderFooterComponent } from './examples/grid-header-footer.component';
3737

3838
import { NgModule } from '@angular/core';
3939
import { Routes, RouterModule } from '@angular/router';
@@ -62,6 +62,7 @@ const routes: Routes = [
6262
{ path: 'gridtabs', component: GridTabsComponent },
6363
{ path: 'draggrouping', component: GridDraggableGroupingComponent },
6464
{ path: 'grouping', component: GridGroupingComponent },
65+
{ path: 'header-footer', component: GridHeaderFooterComponent },
6566
{ path: 'localization', component: GridLocalizationComponent },
6667
{ path: 'clientside', component: GridClientSideComponent },
6768
{ path: 'odata', component: GridOdataComponent },
@@ -75,7 +76,6 @@ const routes: Routes = [
7576
{ path: 'tree-data-parent-child', component: GridTreeDataParentChildComponent },
7677
{ path: 'tree-data-hierarchical', component: GridTreeDataHierarchicalComponent },
7778
{ path: 'swt', component: SwtCommonGridTestComponent },
78-
{ path: 'header-footer', component: GridHeaderFooterComponent },
7979
{ path: '', redirectTo: '/trading', pathMatch: 'full' },
8080
{ path: '**', redirectTo: '/trading', pathMatch: 'full' }
8181
];

src/app/app.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
1111

1212
import { AppComponent } from './app.component';
1313
import { CustomTitleFormatterComponent } from './examples/custom-titleFormatter.component';
14+
import { CustomButtonFormatterComponent } from './examples/custom-buttonFormatter.component';
15+
import { CustomFooterComponent, GridHeaderFooterComponent } from './examples/grid-header-footer.component';
1416
import { EditorNgSelectComponent } from './examples/editor-ng-select.component';
1517
import { FilterNgSelectComponent } from './examples/filter-ng-select.component';
1618
import { GridAddItemComponent } from './examples/grid-additem.component';
@@ -61,8 +63,6 @@ import { AngularSlickgridModule } from './modules/angular-slickgrid/modules/angu
6163

6264
// load necessary Flatpickr Locale(s), but make sure it's imported AFTER the SlickgridModule import
6365
import 'flatpickr/dist/l10n/fr';
64-
import { CustomButtonFormatterComponent } from './examples/custom-buttonFormatter.component';
65-
import { CustomFooterComponent, GridHeaderFooterComponent } from './examples/grid-header-footer.component';
6666

6767
// AoT requires an exported function for factories
6868
export function createTranslateLoader(http: HttpClient) {
@@ -91,8 +91,9 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj
9191
@NgModule({
9292
declarations: [
9393
AppComponent,
94-
CustomTitleFormatterComponent,
9594
CustomButtonFormatterComponent,
95+
CustomFooterComponent,
96+
CustomTitleFormatterComponent,
9697
EditorNgSelectComponent,
9798
FilterNgSelectComponent,
9899
GridAddItemComponent,
@@ -113,6 +114,7 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj
113114
GridGraphqlWithoutPaginationComponent,
114115
GridGroupingComponent,
115116
GridHeaderButtonComponent,
117+
GridHeaderFooterComponent,
116118
GridHeaderMenuComponent,
117119
GridLocalizationComponent,
118120
GridMenuComponent,
@@ -134,8 +136,6 @@ export function appInitializerFactory(translate: TranslateService, injector: Inj
134136
SwtCommonGridPaginationComponent,
135137
SwtCommonGridComponent,
136138
HomeComponent,
137-
GridHeaderFooterComponent,
138-
CustomFooterComponent
139139
],
140140
imports: [
141141
AppRoutingRoutingModule,

0 commit comments

Comments
 (0)