Skip to content

Commit 255ee24

Browse files
committed
fix(grid-crm): fix routes for stackblitz generation
1 parent 485c22f commit 255ee24

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

live-editing/configs/GridCRMConfigGenerator.ts

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,33 @@ import { BrowserModule, HammerModule } from '@angular/platform-browser';
1515
import { RouterModule } from '@angular/router';
1616
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
1717
import { FormsModule } from '@angular/forms';
18+
import { IgxPreventDocumentScrollModule } from '../../src/app/directives/prevent-scroll.directive';
19+
import { GridsCrmModule } from '../../projects/app-crm/src/app/grid-crm/grid-crm.module';
1820

1921
export class GridCRMConfigGenerator implements IConfigGenerator {
2022
public generateConfigs(): Config[] {
2123
const configs = new Array<Config>();
2224

2325
configs.push(new Config({
2426
component: 'GridCRMComponent',
25-
additionalFiles: ['/src/app/directives/prevent-scroll.directive.ts',
26-
'/projects/app-crm/src/_app-layout.scss', '/projects/app-crm/src/_variables.scss'],
27+
additionalFiles: [
28+
'/src/app/directives/prevent-scroll.directive.ts',
29+
'/projects/app-crm/src/_app-layout.scss',
30+
'/projects/app-crm/src/_variables.scss',
31+
'/projects/app-crm/src/app/grid-crm/data.ts'
32+
],
2733
additionalDependencies: [],
2834
appModuleConfig: new AppModuleConfig({
29-
imports: ['BrowserModule', 'RouterModule', 'BrowserAnimationsModule', 'FormsModule', 'HammerModule'],
30-
ngDeclarations: ['GridCRMComponent'],
31-
ngImports: ['IgxAutocompleteModule', 'IgxRippleModule', 'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
32-
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule', 'IgxPreventDocumentScrollModule']
35+
imports: [
36+
'RouterModule', 'HammerModule', 'IgxAutocompleteModule', 'IgxRippleModule',
37+
'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
38+
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule',
39+
'IgxPreventDocumentScrollModule', 'GridsCrmModule'
40+
],
41+
ngDeclarations: [],
42+
ngImports: ['IgxPreventDocumentScrollModule', 'IgxRippleModule',
43+
'IgxGridModule', 'IgxIconModule', 'IgxLayoutModule',
44+
'IgxAvatarModule', 'IgxInputGroupModule', 'IgxButtonModule', 'GridsCrmModule']
3345
})
3446
}));
3547

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
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-
IgxAutocompleteModule, IgxButtonModule, IgxIconModule, IgxInputGroupModule, IgxLayoutModule,
7-
IgxRippleModule, IgxGridModule, IgxAvatarModule
5+
IgxAutocompleteModule, IgxLayoutModule
86
} from 'igniteui-angular';
9-
import { IgxPreventDocumentScrollModule } from '../../../../src/app/directives/prevent-scroll.directive';
107
import { AppComponent } from './app.component';
118
import { AppRoutingModule } from './app.routing.module';
9+
import { GridsCrmModule } from './grid-crm/grid-crm.module';
1210

1311
@NgModule({
1412
bootstrap: [AppComponent],
@@ -17,20 +15,14 @@ import { AppRoutingModule } from './app.routing.module';
1715
],
1816
imports: [
1917
IgxAutocompleteModule,
20-
IgxRippleModule,
21-
IgxGridModule,
22-
IgxIconModule,
2318
IgxLayoutModule,
24-
IgxAvatarModule,
25-
IgxInputGroupModule,
2619
BrowserModule,
2720
AppRoutingModule,
2821
BrowserAnimationsModule,
29-
IgxButtonModule,
30-
FormsModule,
31-
IgxPreventDocumentScrollModule,
32-
HammerModule
33-
]
22+
HammerModule,
23+
GridsCrmModule
24+
],
25+
providers: []
3426
})
3527
export class AppModule { }
3628

projects/app-crm/src/assets/samples/grid-crm.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"generationTimeStamp":1670355045503}
1+
{"generationTimeStamp":1670397625889}

0 commit comments

Comments
 (0)