diff --git a/angular-ui-switch.js b/angular-ui-switch.js index 9a6b591..60d02fe 100644 --- a/angular-ui-switch.js +++ b/angular-ui-switch.js @@ -1,28 +1,29 @@ angular.module('uiSwitch', []) -.directive('switch', function(){ - return { - restrict: 'AE' - , replace: true - , transclude: true - , template: function(element, attrs) { - var html = ''; - html += ''+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; + .directive('switch', function() { + return { + restrict: 'AE', + replace: true, + transclude: true, + template: function(element, attrs) { + var html = ''; + html += '' + 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; + } } - } -}); + });