Skip to content

Commit d4ac7c3

Browse files
committed
refactor(material/slider): remove explicit change detection
Now that `OnPush` is the default, we can remove it from the metadata.
1 parent 05b738f commit d4ac7c3

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/material/slider/slider-thumb.ts

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

99
import {
1010
AfterViewInit,
11-
ChangeDetectionStrategy,
1211
ChangeDetectorRef,
1312
Component,
1413
ElementRef,
@@ -45,7 +44,6 @@ import {Platform} from '@angular/cdk/platform';
4544
host: {
4645
'class': 'mdc-slider__thumb mat-mdc-slider-visual-thumb',
4746
},
48-
changeDetection: ChangeDetectionStrategy.OnPush,
4947
encapsulation: ViewEncapsulation.None,
5048
providers: [{provide: MAT_SLIDER_VISUAL_THUMB, useExisting: MatSliderVisualThumb}],
5149
imports: [MatRipple],

src/material/slider/slider.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
afterRenderEffect,
1313
AfterViewInit,
1414
booleanAttribute,
15-
ChangeDetectionStrategy,
1615
ChangeDetectorRef,
1716
Component,
1817
computed,
@@ -74,7 +73,6 @@ import {_CdkPrivateStyleLoader} from '@angular/cdk/private';
7473
'[class._mat-animation-noopable]': '_noopAnimations',
7574
},
7675
exportAs: 'matSlider',
77-
changeDetection: ChangeDetectionStrategy.OnPush,
7876
encapsulation: ViewEncapsulation.None,
7977
providers: [{provide: MAT_SLIDER, useExisting: MatSlider}],
8078
imports: [MatSliderVisualThumb],

0 commit comments

Comments
 (0)