|
1 | 1 | import { enableProdMode, importProvidersFrom } from '@angular/core'; |
2 | | -import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
3 | | - |
4 | | - |
5 | | -import { environment } from './environments/environment'; |
6 | | -import { SEOService } from '../../app-lob/src/app/seo.service'; |
7 | | -import { IgxAutocompleteModule, IgxRippleModule, IgxGridModule, IgxIconModule, IgxLayoutModule, IgxAvatarModule, IgxInputGroupModule, IgxButtonModule, IgxProgressBarModule, IgxIconButtonDirective } from 'igniteui-angular'; |
| 2 | +import { PreloadAllModules, provideRouter, Routes, withPreloading } from '@angular/router'; |
8 | 3 | import { BrowserModule, HammerModule, bootstrapApplication } from '@angular/platform-browser'; |
9 | | -import { AppRoutingModule } from './app/app-routing.module'; |
10 | 4 | import { provideAnimations } from '@angular/platform-browser/animations'; |
11 | 5 | import { FormsModule } from '@angular/forms'; |
| 6 | + |
| 7 | +import { environment } from './environments/environment'; |
| 8 | +import { SEOService } from '../../app-lob/src/app/seo.service'; |
| 9 | +import { |
| 10 | + IgxAutocompleteModule, |
| 11 | + IgxRippleModule, |
| 12 | + IgxGridModule, |
| 13 | + IgxIconModule, |
| 14 | + IgxLayoutModule, |
| 15 | + IgxAvatarModule, |
| 16 | + IgxInputGroupModule, |
| 17 | + IgxButtonModule, |
| 18 | + IgxProgressBarModule, |
| 19 | + IgxIconButtonDirective |
| 20 | +} from 'igniteui-angular'; |
| 21 | + |
12 | 22 | import { IgxPreventDocumentScrollDirective } from '../../../src/app/directives/prevent-scroll.directive'; |
13 | 23 | import { AppComponent } from './app/app.component'; |
| 24 | +import { GridCRMComponent } from './app/grid-crm/grid-crm.component'; |
14 | 25 |
|
15 | 26 | if (environment.production) { |
16 | 27 | enableProdMode(); |
17 | 28 | } |
18 | 29 |
|
| 30 | +const gridCrmRoutes: Routes = [ |
| 31 | + { |
| 32 | + path: '', pathMatch: 'full', component: GridCRMComponent |
| 33 | + }, |
| 34 | + { |
| 35 | + path: 'grid-crm', component: GridCRMComponent |
| 36 | + } |
| 37 | +]; |
| 38 | + |
19 | 39 | bootstrapApplication(AppComponent, { |
20 | 40 | providers: [ |
21 | | - importProvidersFrom(IgxAutocompleteModule, IgxRippleModule, IgxGridModule, IgxIconModule, IgxLayoutModule, IgxAvatarModule, IgxInputGroupModule, BrowserModule, AppRoutingModule, IgxButtonModule, IgxProgressBarModule, FormsModule, IgxPreventDocumentScrollDirective, HammerModule, IgxIconButtonDirective), |
| 41 | + importProvidersFrom(IgxAutocompleteModule, IgxRippleModule, IgxGridModule, IgxIconModule, IgxLayoutModule, IgxAvatarModule, IgxInputGroupModule, BrowserModule, IgxButtonModule, IgxProgressBarModule, FormsModule, IgxPreventDocumentScrollDirective, HammerModule, IgxIconButtonDirective), |
| 42 | + provideRouter(gridCrmRoutes, withPreloading(PreloadAllModules)), |
22 | 43 | SEOService, |
23 | 44 | provideAnimations() |
24 | 45 | ] |
|
0 commit comments