From 0fe4486737c9780b3c2d7c86d84eab57c961834c Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Thu, 6 Feb 2014 08:48:12 -0500 Subject: [PATCH] feat(ionicToggle): allow ngDisabled binding --- js/ext/angular/src/directive/ionicToggle.js | 8 +++-- js/ext/angular/test/toggle.html | 37 +++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 js/ext/angular/test/toggle.html diff --git a/js/ext/angular/src/directive/ionicToggle.js b/js/ext/angular/src/directive/ionicToggle.js index 79a28f33972..1d2368a5f3e 100644 --- a/js/ext/angular/src/directive/ionicToggle.js +++ b/js/ext/angular/src/directive/ionicToggle.js @@ -15,13 +15,14 @@ angular.module('ionic.ui.toggle', []) ngModel: '=?', ngValue: '=?', ngChecked: '=?', - ngChange: '&' + ngChange: '&', + ngDisabled: '=?' }, transclude: true, template: '
' + '
' + '