Skip to content

Commit ce57945

Browse files
chore(*): clean up leftovers & minor renaming
1 parent 35de887 commit ce57945

4 files changed

Lines changed: 14 additions & 56 deletions

File tree

src/app/app.config.ts

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,21 @@ import { FormsModule } from "@angular/forms";
44
import { BrowserModule, HammerModule } from "@angular/platform-browser";
55
import { provideAnimations } from "@angular/platform-browser/animations";
66
import { NgbModule } from "@ng-bootstrap/ng-bootstrap";
7-
import {
8-
IgxAutocompleteModule,
9-
IgxRippleModule,
10-
IgxNavbarModule,
11-
IgxNavigationDrawerModule,
12-
IgxIconModule,
13-
IgxLayoutModule,
14-
IgxInputGroupModule,
15-
IgxTreeModule,
16-
IgxButtonModule,
17-
IgxButtonGroupModule,
18-
IgxSliderModule,
19-
IgxDateRangePickerModule,
20-
IgxDropDownModule
21-
} from "igniteui-angular";
227
import { provideRouter } from "@angular/router";
23-
import { appRoutes } from "./app.routes";
8+
import { AppRoutes } from "./app.routes";
249
import { OverflowService } from "./services/overflow.service";
2510

26-
export const appConfig: ApplicationConfig = {
11+
export const AppConfig: ApplicationConfig = {
2712
providers: [
2813
importProvidersFrom(
29-
IgxAutocompleteModule,
30-
IgxRippleModule,
31-
IgxNavbarModule,
32-
IgxNavigationDrawerModule,
33-
IgxIconModule,
34-
IgxLayoutModule,
35-
IgxInputGroupModule,
36-
IgxTreeModule,
3714
BrowserModule,
38-
IgxButtonModule,
39-
IgxButtonGroupModule,
4015
FormsModule,
4116
HammerModule,
42-
NgbModule,
43-
IgxSliderModule,
44-
IgxDateRangePickerModule,
45-
IgxDropDownModule
17+
NgbModule
4618
),
4719
provideHttpClient(withInterceptorsFromDi()),
4820
provideAnimations(),
49-
provideRouter(appRoutes),
21+
provideRouter(AppRoutes),
5022
OverflowService
5123
]
5224
};

src/app/app.routes.ts

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,98 +3,85 @@ import { HomeComponent } from './home/home.component';
33
import { DocsLayoutComponent } from './index/docs-layout.component';
44
import { IndexComponent } from './index/index.component';
55

6-
export const samplesRoutes: Routes = [
6+
export const SamplesRoutes: Routes = [
77
{
88
component: HomeComponent,
99
data: { displayName: 'Home' },
1010
path: 'home'
1111
},
1212
{
13-
path: 'data-display',
14-
loadChildren: () => import('./data-display/data-display.routes').then(m => m.DataDisplayRoutes)
13+
loadChildren: () => import('./data-display/data-display.routes').then(m => m.DataDisplayRoutes),
14+
path: 'data-display'
1515
},
1616
{
17-
data: ['DataEntriesModule'],
1817
loadChildren: () => import('./data-entries/data-entries.routes').then(m => m.DataEntriesRoutes),
1918
path: 'data-entries'
2019
},
2120
{
22-
data: ['InteractionsModule'],
2321
loadChildren: () => import('./interactions/interactions.routes').then(m => m.InteractionsRoutes),
2422
path: 'interactions'
2523
},
2624
{
27-
data: ['NotificationsModule'],
2825
loadChildren: () => import('./notifications/notifications.routes').then(m => m.NotificationsRoutes),
2926
path: 'notifications'
3027
},
3128
{
32-
data: ['ListsModule'],
3329
loadChildren: () => import('./lists/lists.routes').then(m => m.ListsRoutes),
3430
path: 'lists'
3531
},
3632
{
37-
data: ['ThemingModule'],
3833
loadChildren: () => import('./theming/theming.routes').then(m => m.ThemingRoutes),
3934
path: 'theming'
4035
},
4136
{
42-
data: ['SchedulingModule'],
4337
loadChildren: () => import('./scheduling/scheduling.routes').then(m => m.SchedulingRoutes),
4438
path: 'scheduling'
4539
},
4640
{
47-
data: ['MenusModule'],
4841
loadChildren: () => import('./menus/menus.routes').then(m => m.MenusRoutes),
4942
path: 'menus'
5043
},
5144
{
52-
data: ['LayoutsModule'],
5345
loadChildren: () => import('./layouts/layouts.routes').then(m => m.LayoutsRoutes),
5446
path: 'layouts'
5547
},
5648
{
57-
data: ['ServicesModule'],
5849
loadChildren: () => import('./services/services.routes').then(m => m.ServicesRoutes),
5950
path: 'services'
6051
},
6152
{
62-
data: ['TreeGridModule'],
6353
loadChildren: () => import('./tree-grid/tree-grid.routes').then(m => m.TreeGridRoutes),
6454
path: 'tree-grid'
6555
},
6656
{
67-
data: ['GridsModule'],
6857
loadChildren: () => import('./grid/grids.routes').then(m => m.GridsRoutes),
6958
path: 'grid'
7059
},
7160
{
72-
data: ['PivotGridsModule'],
7361
loadChildren: () => import('./pivot-grid/pivot-grids.routes').then(m => m.PivotGridsRoutes),
7462
path: 'pivot-grid'
7563
},
7664
{
77-
data: ['HierarchicalGridModule'],
7865
loadChildren: () => import('./hierarchical-grid/hierarchical-grid.routes').then(m => m.HierarchicalGridRoutes),
7966
path: 'hierarchical-grid'
8067
},
8168
{
82-
data: ['PaginationModule'],
8369
loadChildren: () => import('./pagination/pagination.routes').then(m => m.PaginatorRoutes),
8470
path: 'pagination'
8571
}
8672
];
87-
export const appRoutes: Routes = [
73+
74+
export const AppRoutes: Routes = [
8875
{
8976
path: '', pathMatch: 'full', redirectTo: '/samples/home'
9077
},
9178
{
92-
children: samplesRoutes,
79+
children: SamplesRoutes,
9380
component: DocsLayoutComponent,
9481
path: ''
9582
},
9683
{
97-
children: samplesRoutes,
84+
children: SamplesRoutes,
9885
component: IndexComponent,
9986
path: 'samples'
10087
}

src/app/interactions/interactions.routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// tslint:disable:no-string-literal
2-
import { NgModule } from '@angular/core';
3-
import { RouterModule, Routes } from '@angular/router';
2+
import { Routes } from '@angular/router';
43
import { DialogSample1Component } from './dialog/dialog-sample-1/dialog-sample-1.component';
54
import { DialogSample2Component } from './dialog/dialog-sample-2/dialog-sample-2.component';
65
import { DialogSample3Component } from './dialog/dialog-sample-3/dialog-sample-3.component';

src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import { environment } from './environments/environment';
33
import { defineCustomElements } from 'igniteui-dockmanager/loader';
44
import { bootstrapApplication } from '@angular/platform-browser';
55
import { AppComponent } from './app/app.component';
6-
import { appConfig } from './app/app.config';
6+
import { AppConfig } from './app/app.config';
77

88
if (environment.production) {
99
enableProdMode();
1010
}
1111

12-
bootstrapApplication(AppComponent, appConfig).catch(err => console.log(err));
12+
bootstrapApplication(AppComponent, AppConfig).catch(err => console.log(err));
1313

1414
defineCustomElements(window);

0 commit comments

Comments
 (0)