"use strict";angular.module("ez.checkbox",[]).constant("EzCheckboxConfig",{iconClass:"glyphicon glyphicon-ok"}).directive("ezCheckbox",["EzCheckboxConfig",function(a){return{require:"ngModel",restrict:"EA",replace:"true",transclude:!0,template:'<a class="ez-checkbox" ng-click="toggle()"><span class="check-box"><i class="{{options.iconClass}}" ng-show="checked"></i></span><span class="check-label" ng-transclude></span></a>',scope:{},link:function(b,c,d,e){var f=!0,g=!1;b.options=a,d.hasOwnProperty("trueValue")&&(f=d.trueValue),d.hasOwnProperty("invert")&&(g=f,f=!1),console.log(d,d.name,d.hasOwnProperty("name")),d.hasOwnProperty("name")&&$('form label[for="'+d.name+'"]').click(function(){b.toggle(),b.$apply()}),e.$render=function(){d.disabled||(b.checked=e.$modelValue===f?!0:!1)},b.toggle=function(){d.disabled||(e.$setViewValue(e.$modelValue===f?g:f),e.$render())}}}}]);
"use strict";angular.module("ez.checkbox",[]).constant("EzCheckboxConfig",{iconClass:"glyphicon glyphicon-ok"}).directive("ezCheckbox",["EzCheckboxConfig",function(a){return{require:"ngModel",restrict:"EA",replace:"true",transclude:!0,template:'<a class="ez-checkbox" ng-click="toggle()"><span class="check-box"><i class="{{options.iconClass}}" ng-show="checked"></i></span><span class="check-label" ng-transclude></span></a>',scope:{},link:function(b,c,d,e){var f=!0,g=!1;b.options=a,d.hasOwnProperty("trueValue")&&(f=d.trueValue),d.hasOwnProperty("invert")&&(g=f,f=!1),d.hasOwnProperty("name")&&$('form label[for="'+d.name+'"]').click(function(){b.toggle(),b.$apply()}),e.$render=function(){d.disabled||(b.checked=e.$modelValue===f?!0:!1)},b.toggle=function(){d.disabled||(e.$setViewValue(e.$modelValue===f?g:f),e.$render())}}}}]);
update dist