Skip to content

Commit a41c0e6

Browse files
committed
refactor(material/stepper): remove explicit change detection
Now that `OnPush` is the default, we can remove it from the metadata.
1 parent 0b36aaf commit a41c0e6

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/material/stepper/step-header.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import {FocusMonitor, FocusOrigin} from '@angular/cdk/a11y';
1010
import {
11-
ChangeDetectionStrategy,
1211
ChangeDetectorRef,
1312
Component,
1413
Input,
@@ -39,7 +38,6 @@ import {_CdkPrivateStyleLoader, _VisuallyHiddenLoader} from '@angular/cdk/privat
3938
'role': '', // ignore cdk role in favor of setting appropriately in html
4039
},
4140
encapsulation: ViewEncapsulation.None,
42-
changeDetection: ChangeDetectionStrategy.OnPush,
4341
imports: [MatRipple, NgTemplateOutlet, MatIcon],
4442
})
4543
export class MatStepHeader extends CdkStepHeader implements AfterViewInit, OnDestroy {

src/material/stepper/stepper.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {CdkStep, CdkStepper} from '@angular/cdk/stepper';
1010
import {
1111
AfterContentInit,
1212
AfterViewInit,
13-
ChangeDetectionStrategy,
1413
Component,
1514
ContentChild,
1615
ContentChildren,
@@ -52,7 +51,6 @@ import {MatStepContent} from './step-content';
5251
],
5352
encapsulation: ViewEncapsulation.None,
5453
exportAs: 'matStep',
55-
changeDetection: ChangeDetectionStrategy.OnPush,
5654
imports: [CdkPortalOutlet],
5755
host: {
5856
'hidden': '', // Hide the steps so they don't affect the layout.
@@ -134,7 +132,6 @@ export class MatStep extends CdkStep implements ErrorStateMatcher, AfterContentI
134132
},
135133
providers: [{provide: CdkStepper, useExisting: MatStepper}],
136134
encapsulation: ViewEncapsulation.None,
137-
changeDetection: ChangeDetectionStrategy.OnPush,
138135
imports: [NgTemplateOutlet, MatStepHeader],
139136
})
140137
export class MatStepper extends CdkStepper implements AfterViewInit, AfterContentInit, OnDestroy {

0 commit comments

Comments
 (0)