diff --git a/angular-ui-switch.js b/angular-ui-switch.js
index 9a6b591..1c35708 100644
--- a/angular-ui-switch.js
+++ b/angular-ui-switch.js
@@ -19,10 +19,11 @@ angular.module('uiSwitch', [])
html += attrs.ngModel ? ' ng-model="' + attrs.ngModel + '"' : '';
html += ' style="display:none" />';
html += ''; /*adding new container for switch text*/
+ html += '';
html += attrs.on ? ''+attrs.on+'' : ''; /*switch text on value set by user in directive html markup*/
html += attrs.off ? ''+attrs.off + '' : ' '; /*switch text off value set by user in directive html markup*/
html += '';
return html;
}
- }
+ };
});
diff --git a/angular-ui-switch.min.js b/angular-ui-switch.min.js
index 6f6da0f..a5d40fd 100644
--- a/angular-ui-switch.min.js
+++ b/angular-ui-switch.min.js
@@ -1 +1 @@
-angular.module("uiSwitch",[]).directive("switch",function(){return{restrict:"AE",replace:!0,transclude:!0,template:function(n,e){var s="";return s+="",s+="",s+='',s+='',s+=e.on?''+e.on+"":"",s+=e.off?''+e.off+"":" ",s+=""}}});
\ No newline at end of file
+angular.module("uiSwitch",[]).directive("switch",function(){return{restrict:"AE",replace:!0,transclude:!0,template:function(n,s){var e="";return e+="",e+="",e+='',e+='',e+="",e+=s.on?''+s.on+"":"",e+=s.off?''+s.off+"":" ",e+=""}}});
diff --git a/package.json b/package.json
index a590c91..19022f2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "angular-ui-switch",
- "version": "0.1.1",
+ "version": "0.1.2",
"description": "iOS 7 style switch directive for AngularJS",
"main": "angular-ui-switch.js",
"scripts": {