Skip to content

Commit 0b36aaf

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

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/material/sort/sort-header.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {AriaDescriber, FocusMonitor} from '@angular/cdk/a11y';
1010
import {ENTER, SPACE} from '@angular/cdk/keycodes';
1111
import {
1212
AfterViewInit,
13-
ChangeDetectionStrategy,
1413
Component,
1514
ElementRef,
1615
Input,
@@ -59,7 +58,6 @@ import {_animationsDisabled, _StructuralStylesLoader} from '../core';
5958
'[class.mat-sort-header-disabled]': '_isDisabled()',
6059
},
6160
encapsulation: ViewEncapsulation.None,
62-
changeDetection: ChangeDetectionStrategy.OnPush,
6361
})
6462
export class MatSortHeader implements MatSortable, OnDestroy, OnInit, AfterViewInit {
6563
protected _sort = inject(MatSort, {optional: true})!;

0 commit comments

Comments
 (0)