Skip to content

Commit a2978ac

Browse files
committed
Revert crm docs-layout structure
1 parent 89a8762 commit a2978ac

25 files changed

Lines changed: 12 additions & 828 deletions

live-editing/Routes.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ import { PaginationModule } from '../src/app/pagination/pagination.module';
4848
import * as PaginatorRouting from '../src/app/pagination/pagination-routing.module';
4949
import { PivotGridsModule } from '../src/app/pivot-grid/pivot-grids.module';
5050
import { PivotGridsRoutingModule } from '../src/app/pivot-grid/pivot-grids-routing.module';
51+
import { GridCRMComponent } from '../projects/app-crm/src/app/grid-crm/grid-crm.component';
52+
import { AppModule } from '../projects/app-crm/src/app/app.module';
5153
import { GridsCrmModule } from '../projects/app-crm/src/app/grid-crm/grid-crm.module';
5254

5355
export const MODULE_ROUTES = [

projects/app-crm/src/app/app.module.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
import { NgModule } from '@angular/core';
2-
import { FormsModule } from '@angular/forms';
32
import { BrowserModule, HammerModule } from '@angular/platform-browser';
43
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
54
import {
6-
IgxButtonModule, IgxIconModule, IgxInputGroupModule, IgxAutocompleteModule,
7-
IgxLayoutModule, IgxNavbarModule, IgxNavigationDrawerModule, IgxRippleModule
5+
IgxAutocompleteModule, IgxLayoutModule
86
} from 'igniteui-angular';
97
import { AppComponent } from './app.component';
108
import { AppRoutingModule } from './app.routing.module';
119
import { GridsCrmModule } from './grid-crm/grid-crm.module';
12-
import { HomeComponent } from './home/home.component';
13-
import { DocsLayoutComponent } from './index/docs-layout.component';
14-
import { IndexComponent } from './index/index.component';
1510

1611
@NgModule({
1712
bootstrap: [AppComponent],
1813
declarations: [
19-
AppComponent,
20-
HomeComponent,
21-
DocsLayoutComponent,
22-
IndexComponent
14+
AppComponent
2315
],
2416
imports: [
25-
IgxButtonModule,
26-
IgxIconModule,
27-
IgxInputGroupModule,
28-
IgxNavbarModule,
29-
IgxNavigationDrawerModule,
30-
IgxRippleModule,
3117
IgxAutocompleteModule,
3218
IgxLayoutModule,
3319
BrowserModule,
3420
AppRoutingModule,
35-
FormsModule,
3621
BrowserAnimationsModule,
3722
HammerModule,
3823
GridsCrmModule
Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,20 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3-
import { HomeComponent } from './home/home.component';
4-
import { DocsLayoutComponent } from './index/docs-layout.component';
5-
import { IndexComponent } from './index/index.component';
6-
7-
8-
export const samplesRoutes: Routes = [
9-
{
10-
component: HomeComponent,
11-
data: { displayName: 'Home' },
12-
path: 'home'
13-
},
14-
{
15-
loadChildren: () => import('./grid-crm/grid-crm.module').then(m => m.GridsCrmModule),
16-
path: 'grid-crm'
17-
}
18-
];
193

204
export const appRoutes: Routes = [
215
{
22-
path: '', pathMatch: 'full', redirectTo: '/samples/home'
6+
path: '', pathMatch: 'full', loadChildren: () => import('./grid-crm/grid-crm.module').then(m => m.GridsCrmModule)
237
},
248
{
25-
children: samplesRoutes,
26-
component: DocsLayoutComponent,
27-
path: ''
28-
},
29-
{
30-
children: samplesRoutes,
31-
component: IndexComponent,
32-
path: 'samples'
9+
path: 'grid-crm', redirectTo: ''
3310
}
3411
];
35-
3612
@NgModule({
37-
imports: [RouterModule.forRoot(appRoutes, {})],
38-
exports: [RouterModule]
13+
exports: [
14+
RouterModule
15+
],
16+
imports: [
17+
RouterModule.forRoot(appRoutes)
18+
]
3919
})
4020
export class AppRoutingModule { }

projects/app-crm/src/app/grid-crm/grid-crm-routes-data.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

projects/app-crm/src/app/home/home.component.html

Lines changed: 0 additions & 80 deletions
This file was deleted.

projects/app-crm/src/app/home/home.component.scss

Lines changed: 0 additions & 123 deletions
This file was deleted.

projects/app-crm/src/app/home/home.component.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

projects/app-crm/src/app/index/docs-layout.component.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

projects/app-crm/src/app/index/docs-layout.component.ts

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)