Skip to content

Commit f4ae831

Browse files
fix lint in Angular demos
1 parent 30b45af commit f4ae831

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

apps/demos/Demos/DataGrid/AdvancedMasterDetailView/Angular/app/detail-view/detail-view.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class DetailViewComponent implements AfterViewInit {
3535

3636
orderHistoryData: DataSource;
3737

38-
constructor(private cdr: ChangeDetectorRef) {
38+
constructor(private changeDetectorRef: ChangeDetectorRef) {
3939
this.url = 'https://js.devexpress.com/Demos/NetCore/api/DataGridAdvancedMasterDetailView';
4040
}
4141

@@ -49,7 +49,7 @@ export class DetailViewComponent implements AfterViewInit {
4949
}),
5050
});
5151

52-
this.cdr.detectChanges();
52+
this.changeDetectorRef.detectChanges();
5353
}
5454

5555
setDefaultProduct(items) {
@@ -58,7 +58,7 @@ export class DetailViewComponent implements AfterViewInit {
5858
if (firstItem && this.productIdBySupplier === undefined) {
5959
this.productIdBySupplier = firstItem.ProductID;
6060
}
61-
this.cdr.detectChanges();
61+
this.changeDetectorRef.detectChanges();
6262
}
6363

6464
handleValueChange(e: DxSelectBoxTypes.ValueChangedEvent) {

apps/demos/Demos/DataGrid/MasterDetailView/Angular/app/detail-grid/detail-grid.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class DetailGridComponent implements AfterViewInit {
2222

2323
tasks: Task[];
2424

25-
constructor(private service: Service, private cdr: ChangeDetectorRef) {
25+
constructor(private service: Service, private changeDetectorRef: ChangeDetectorRef) {
2626
this.tasks = service.getTasks();
2727
}
2828

@@ -35,7 +35,7 @@ export class DetailGridComponent implements AfterViewInit {
3535
filter: ['EmployeeID', '=', this.key],
3636
});
3737

38-
this.cdr.detectChanges();
38+
this.changeDetectorRef.detectChanges();
3939
}
4040

4141
completedValue(rowData) {

apps/demos/Demos/FileUploader/FileSelection/Angular/app/app.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { bootstrapApplication } from '@angular/platform-browser';
22
import {
3-
Component, ViewChild, enableProdMode, provideZoneChangeDetection } from '@angular/core';
3+
Component,
4+
ViewChild,
5+
enableProdMode,
6+
provideZoneChangeDetection
7+
} from '@angular/core';
48
import { NgForm } from '@angular/forms';
5-
69
import { DxTextBoxModule, DxFileUploaderModule, DxButtonModule } from 'devextreme-angular';
710
import notify from 'devextreme/ui/notify';
811

apps/demos/Demos/Form/ItemCustomization/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { bootstrapApplication } from '@angular/platform-browser';
2-
import {
2+
import {
33
Component,
44
ViewChild,
55
enableProdMode,

apps/demos/Demos/Form/Validation/Angular/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
Component,
44
ViewChild,
55
enableProdMode,
6-
provideZoneChangeDetection
6+
provideZoneChangeDetection,
77
} from '@angular/core';
88
import {
99
DxCheckBoxModule,

apps/demos/Demos/Scheduler/DragAndDrop/Angular/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectorRef, Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
1+
import { Component, enableProdMode, provideZoneChangeDetection } from '@angular/core';
22
import { bootstrapApplication } from '@angular/platform-browser';
33
import { DxSchedulerModule, DxDraggableModule, DxScrollViewModule } from 'devextreme-angular';
44
import { DxSchedulerTypes } from 'devextreme-angular/ui/scheduler';
@@ -35,7 +35,7 @@ export class AppComponent {
3535

3636
currentDate: Date = new Date(2021, 3, 26);
3737

38-
constructor(service: Service, private cdr: ChangeDetectorRef) {
38+
constructor(service: Service) {
3939
this.tasks = service.getTasks();
4040
this.appointments = service.getAppointments();
4141
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
ViewChild,
55
AfterViewInit,
66
enableProdMode,
7-
provideZoneChangeDetection
7+
provideZoneChangeDetection,
88
} from '@angular/core';
99
import { DxSelectBoxModule } from 'devextreme-angular';
1010
import { DxCheckBoxModule, DxCheckBoxTypes } from 'devextreme-angular/ui/check-box';

0 commit comments

Comments
 (0)