Skip to content

Commit

Permalink
Cast NgModel value to a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Jun 12, 2017
1 parent 91e0ee2 commit 2f8cd37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/slide-toggle/slide-toggle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class MdSlideToggle extends _MdSlideToggleMixinBase

/** Implemented as part of ControlValueAccessor. */
writeValue(value: any): void {
this.checked = value;
this.checked = !!value;
}

/** Implemented as part of ControlValueAccessor. */
Expand Down

0 comments on commit 2f8cd37

Please sign in to comment.