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 Apr 30, 2017
1 parent fff9f9b commit 051aaa5
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 @@ -177,7 +177,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 051aaa5

Please sign in to comment.