mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
chore(tooltip): switch to OnPush change detection (#5553)
Switches `md-tooltip` to `OnPush` change detection. Relates to #5035.
This commit is contained in:
committed by
mmalerba
parent
ae5bca261a
commit
2ba713eaa5
@@ -17,6 +17,7 @@ import {
|
||||
OnDestroy,
|
||||
Renderer2,
|
||||
ChangeDetectorRef,
|
||||
ChangeDetectionStrategy,
|
||||
ViewEncapsulation,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
@@ -378,6 +379,7 @@ export type TooltipVisibility = 'initial' | 'visible' | 'hidden';
|
||||
templateUrl: 'tooltip.html',
|
||||
styleUrls: ['tooltip.css'],
|
||||
encapsulation: ViewEncapsulation.None,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
animations: [
|
||||
trigger('state', [
|
||||
state('void', style({transform: 'scale(0)'})),
|
||||
|
||||
Reference in New Issue
Block a user