Skip to content

Commit

Permalink
feat(md-switch): make md-disabled bindable, close #306
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanood committed Nov 2, 2016
1 parent fda1c3d commit d961b15
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/switch/switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,10 @@ export class MdSwitch {
this.checkbox.checked = !!newValue;
}
}

mdDisabledChanged(newValue) {
if (this.checkbox) {
this.checkbox.disabled = !!newValue;
}
}
}

0 comments on commit d961b15

Please sign in to comment.