Skip to content

Commit 659712e

Browse files
add changeDetection: ChangeDetectionStrategy.Eager to demos
1 parent e457997 commit 659712e

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

apps/demos/Demos/Accordion/Overview/Angular/app/app.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
1+
import {
2+
ChangeDetectionStrategy,
3+
Component,
4+
enableProdMode,
5+
provideZoneChangeDetection
6+
} from '@angular/core';
27
import { bootstrapApplication } from '@angular/platform-browser';
38
import {
49
DxAccordionModule, DxCheckBoxModule, DxSliderModule, DxTagBoxModule,
@@ -17,6 +22,7 @@ if (window && window.config?.packageConfigPaths) {
1722
}
1823

1924
@Component({
25+
changeDetection: ChangeDetectionStrategy.Eager,
2026
selector: 'demo-app',
2127
templateUrl: `.${modulePrefix}/app.component.html`,
2228
styleUrls: [`.${modulePrefix}/app.component.css`],

apps/demos/Demos/DataGrid/DeferredSelection/Angular/app/app.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import {
2-
Component, ViewChild, AfterViewInit, enableProdMode, provideZoneChangeDetection,
2+
Component,
3+
ViewChild,
4+
AfterViewInit,
5+
enableProdMode,
6+
provideZoneChangeDetection,
7+
ChangeDetectionStrategy,
38
} from '@angular/core';
49
import { DxDataGridModule, DxDataGridComponent, DxButtonModule } from 'devextreme-angular';
510
import { query } from 'devextreme-angular/common/data';
@@ -17,6 +22,7 @@ if (window && window.config?.packageConfigPaths) {
1722
}
1823

1924
@Component({
25+
changeDetection: ChangeDetectionStrategy.Eager,
2026
selector: 'demo-app',
2127
templateUrl: `.${modulePrefix}/app.component.html`,
2228
styleUrls: [`.${modulePrefix}/app.component.css`],

apps/demos/Demos/DataGrid/NewRecordPosition/Angular/app/app.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
2-
import { bootstrapApplication, BrowserModule } from '@angular/platform-browser';
2+
import { bootstrapApplication } from '@angular/platform-browser';
33
import Guid from 'devextreme/core/guid';
44
import { CustomStore } from 'devextreme-angular/common/data';
55
import { DxSelectBoxModule } from 'devextreme-angular';
@@ -24,7 +24,6 @@ if (window && window.config?.packageConfigPaths) {
2424
styleUrls: [`.${modulePrefix}/app.component.css`],
2525
providers: [Service],
2626
imports: [
27-
BrowserModule,
2827
DxDataGridModule,
2928
DxSelectBoxModule,
3029
],

apps/demos/Demos/Stepper/FormIntegration/Angular/app/app.component.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import { bootstrapApplication } from '@angular/platform-browser';
2-
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
2+
import {
3+
ChangeDetectionStrategy,
4+
Component,
5+
enableProdMode,
6+
provideZoneChangeDetection
7+
} from '@angular/core';
38
import {
49
DxButtonModule,
510
DxMultiViewModule,
@@ -25,6 +30,7 @@ if (window && window.config?.packageConfigPaths) {
2530
}
2631

2732
@Component({
33+
changeDetection: ChangeDetectionStrategy.Eager,
2834
selector: 'demo-app',
2935
templateUrl: `.${modulePrefix}/app.component.html`,
3036
styleUrls: [`.${modulePrefix}/app.component.css`],

0 commit comments

Comments
 (0)