Skip to content

Commit

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

Relates to #5035.
  • Loading branch information
crisbeto committed Jun 29, 2017
1 parent f73cc97 commit 560ac71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/dialog/dialog-container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import {
EventEmitter,
Inject,
Optional,
ChangeDetectionStrategy,
} from '@angular/core';
import {
animate,
Expand Down Expand Up @@ -50,6 +51,7 @@ export function throwMdDialogContentAlreadyAttachedError() {
selector: 'md-dialog-container, mat-dialog-container',
templateUrl: 'dialog-container.html',
styleUrls: ['dialog.css'],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
animations: [
trigger('slideDialog', [
Expand Down

0 comments on commit 560ac71

Please sign in to comment.