Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 0bc4ae3

Browse files
committed
fix(switch): Remove ChangeDetectionStrategy as it breaks ngModel binding
1 parent e243fea commit 0bc4ae3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/lib/switch/switch.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {
2-
ChangeDetectionStrategy,
32
Component,
43
ElementRef,
54
EventEmitter,
@@ -31,7 +30,6 @@ type UnlistenerMap = WeakMap<EventListener, Function>;
3130
styles: [String(MDC_SWITCH_STYLES)],
3231
templateUrl: './switch.html',
3332
encapsulation: ViewEncapsulation.None,
34-
changeDetection: ChangeDetectionStrategy.OnPush,
3533
providers: [
3634
MD_SWITCH_CONTROL_VALUE_ACCESSOR,
3735
Ripple

0 commit comments

Comments
 (0)