Skip to content

Commit 560ac71

Browse files
committed
chore(dialog): switch to OnPush change detection
Switches the dialog container to `OnPush` change detection. Relates to #5035.
1 parent f73cc97 commit 560ac71

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/dialog/dialog-container.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
EventEmitter,
1818
Inject,
1919
Optional,
20+
ChangeDetectionStrategy,
2021
} from '@angular/core';
2122
import {
2223
animate,
@@ -50,6 +51,7 @@ export function throwMdDialogContentAlreadyAttachedError() {
5051
selector: 'md-dialog-container, mat-dialog-container',
5152
templateUrl: 'dialog-container.html',
5253
styleUrls: ['dialog.css'],
54+
changeDetection: ChangeDetectionStrategy.OnPush,
5355
encapsulation: ViewEncapsulation.None,
5456
animations: [
5557
trigger('slideDialog', [

0 commit comments

Comments
 (0)