Skip to content

Commit

Permalink
chore(tooltip): switch to OnPush change detection
Browse files Browse the repository at this point in the history
Switches `md-tooltip` to `OnPush` change detection.

Relates to angular#5035.
  • Loading branch information
crisbeto committed Jul 6, 2017
1 parent ac3e21a commit dd9a5fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/tooltip/tooltip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
OnDestroy,
Renderer2,
ChangeDetectorRef,
ChangeDetectionStrategy,
ViewEncapsulation,
} from '@angular/core';
import {
Expand Down Expand Up @@ -368,6 +369,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)'})),
Expand Down

0 comments on commit dd9a5fd

Please sign in to comment.