Skip to content

Commit e64fb49

Browse files
add ChangeDetectionStrategy.Eager to some angular demos
1 parent 295160d commit e64fb49

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

apps/demos/Demos/Charts/TilingAlgorithms/Angular/app/app.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
22
import { bootstrapApplication } from '@angular/platform-browser';
33
import { DxTreeMapModule, DxSelectBoxModule } from 'devextreme-angular';
44
import { PopulationByAge, Service } from './app.service';
@@ -14,6 +14,7 @@ if (window && window.config?.packageConfigPaths) {
1414
}
1515

1616
@Component({
17+
changeDetection: ChangeDetectionStrategy.Eager,
1718
selector: 'demo-app',
1819
templateUrl: `.${modulePrefix}/app.component.html`,
1920
styleUrls: [`.${modulePrefix}/app.component.css`],

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
22
import { bootstrapApplication } from '@angular/platform-browser';
33
import Guid from 'devextreme/core/guid';
44
import { CustomStore } from 'devextreme-angular/common/data';
@@ -19,6 +19,7 @@ if (window && window.config?.packageConfigPaths) {
1919
}
2020

2121
@Component({
22+
changeDetection: ChangeDetectionStrategy.Eager,
2223
selector: 'demo-app',
2324
templateUrl: `.${modulePrefix}/app.component.html`,
2425
styleUrls: [`.${modulePrefix}/app.component.css`],

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Input } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
22
import type { BookingFormData } from '../app.types';
33

44
let modulePrefix = '';
@@ -8,6 +8,7 @@ if (window && window.config?.packageConfigPaths) {
88
}
99

1010
@Component({
11+
changeDetection: ChangeDetectionStrategy.Eager,
1112
selector: 'confirmation',
1213
templateUrl: `.${modulePrefix}/confirmation/confirmation.component.html`,
1314
styleUrls: [`.${modulePrefix}/confirmation/confirmation.component.css`],

0 commit comments

Comments
 (0)