Skip to content

Commit 2ba713e

Browse files
crisbetommalerba
authored andcommitted
chore(tooltip): switch to OnPush change detection (#5553)
Switches `md-tooltip` to `OnPush` change detection. Relates to #5035.
1 parent ae5bca2 commit 2ba713e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/tooltip/tooltip.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
OnDestroy,
1818
Renderer2,
1919
ChangeDetectorRef,
20+
ChangeDetectionStrategy,
2021
ViewEncapsulation,
2122
} from '@angular/core';
2223
import {
@@ -378,6 +379,7 @@ export type TooltipVisibility = 'initial' | 'visible' | 'hidden';
378379
templateUrl: 'tooltip.html',
379380
styleUrls: ['tooltip.css'],
380381
encapsulation: ViewEncapsulation.None,
382+
changeDetection: ChangeDetectionStrategy.OnPush,
381383
animations: [
382384
trigger('state', [
383385
state('void', style({transform: 'scale(0)'})),

0 commit comments

Comments
 (0)