Skip to content

Commit fd00e5f

Browse files
committed
refactor(material/tooltip): remove explicit change detection
Now that `OnPush` is the default, we can remove it from the metadata.
1 parent 8e8f3c5 commit fd00e5f

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

src/material/tooltip/tooltip.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,6 @@ class ScrollableTooltipDemo {
16071607
[matTooltipPosition]="position">
16081608
Button
16091609
</button>`,
1610-
changeDetection: ChangeDetectionStrategy.OnPush,
16111610
imports: [MatTooltipModule, OverlayModule],
16121611
})
16131612
class OnPushTooltipDemo {

src/material/tooltip/tooltip.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
import {ESCAPE, hasModifierKey} from '@angular/cdk/keycodes';
1616
import {
1717
AfterViewInit,
18-
ChangeDetectionStrategy,
1918
ChangeDetectorRef,
2019
Component,
2120
Directive,
@@ -961,7 +960,6 @@ export class MatTooltip implements OnDestroy, AfterViewInit {
961960
templateUrl: 'tooltip.html',
962961
styleUrl: 'tooltip.css',
963962
encapsulation: ViewEncapsulation.None,
964-
changeDetection: ChangeDetectionStrategy.OnPush,
965963
host: {
966964
'(mouseleave)': '_handleMouseLeave($event)',
967965
'aria-hidden': 'true',

0 commit comments

Comments
 (0)