This commit is contained in:
Max Lynch
2015-05-09 13:01:48 -05:00
parent a93434165e
commit 7b853dba16
3 changed files with 15 additions and 3 deletions

View File

@@ -70,7 +70,8 @@ export class Switch {
* ControlDirective to update the value internally.
*/
writeValue(value) {
this.checked = value;
// Convert it to a boolean
this.checked = !!value;
}