diff --git a/angular-ui-switch.js b/angular-ui-switch.js index 4108863..baa39cd 100644 --- a/angular-ui-switch.js +++ b/angular-ui-switch.js @@ -3,12 +3,12 @@ angular.module('uiSwitch', []) .directive('switch', function(){ return { restrict: 'AE' - , replace: true + , replace: false , transclude: true , template: function(element, attrs) { var html = ''; html += ''+e.on+"":"",s+=e.off?''+e.off+"":" ",s+=""}}}); \ No newline at end of file +angular.module("uiSwitch",[]).directive("switch",function(){return{restrict:"AE",replace:false,transclude:true,template:function(c,a){var b="";b+="'+a.on+"":"";b+=a.off?''+a.off+"":" ";b+="";return b}}}); \ No newline at end of file