feat(toggle): Disable toggle w/ ng-disabled, closes #541

This commit is contained in:
Adam Bradley
2014-02-06 15:57:25 -06:00
parent d15905ff4e
commit 2eab747d47
3 changed files with 5 additions and 2 deletions

View File

@@ -35,7 +35,6 @@ angular.module('ionic.ui.toggle', [])
if(attr.ngChecked) input.attr('ng-checked', 'ngChecked');
if(attr.ngTrueValue) input.attr('ng-true-value', attr.ngTrueValue);
if(attr.ngFalseValue) input.attr('ng-false-value', attr.ngFalseValue);
if(attr.ngDisabled) input.attr('ng-false-value', attr.ngFalseValue);
// return function link($scope, $element, $attr, ngModel) {
// var el, checkbox, track, handle;