Skip to content

Commit 6285841

Browse files
author
Pedro Catré
committed
Included the dist directory
1 parent c8847e8 commit 6285841

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ node_modules/
22
bower_components/
33
.sass-cache/
44
.tmp/
5-
dist/
65
.idea/

dist/pwSwitch.min.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
** pwSwitch - An AngularJS directive for the pswitch library - turn boring checkboxes into pretty switches
3+
** (c) 2015 payworks GmbH
4+
** @author Pedro Catré
5+
** @version v0.0.0
6+
**/
7+
!function(){"use strict";function e(e){return{restrict:"EA",require:"?ngModel",template:function(e,c){var t=c.checked?'data-checked="'+c.checked+'"':"";return'<input type="checkbox" '+t+"/>"},replace:!0,scope:{model:"=ngModel"},link:function(c,t,n,i){t.addClass("pswitch"),t.pswitch(),i&&(c.$watch("model",function(){t.trigger(i.$viewValue===!0?"check":"uncheck")}),t.on("change",function(){e(function(){i.$setViewValue(t.prop("checked")?!0:!1)})}),c.$on("$destroy",function(){t.off()}))}}}angular.module("pwSwitch",[]).directive("pwSwitch",["$timeout",e])}();

0 commit comments

Comments
 (0)