angular-eha.counter
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,2 +19,3 @@ angular.module('eha.counter.template', ['templates/counter.template.tpl.html']); | ||
" min=\"0\"\n" + | ||
" step=\"1\"\n" + | ||
" class=\"form-control input-lg eha-counter-input\"\n" + | ||
@@ -21,0 +22,0 @@ " ng-change=\"change\"\n" + |
@@ -19,2 +19,3 @@ angular.module('eha.counter.template', ['templates/counter.template.tpl.html']); | ||
" min=\"0\"\n" + | ||
" step=\"1\"\n" + | ||
" class=\"form-control input-lg eha-counter-input\"\n" + | ||
@@ -21,0 +22,0 @@ " ng-change=\"change\"\n" + |
@@ -19,2 +19,3 @@ angular.module('eha.counter.template', ['templates/counter.template.tpl.html']); | ||
" min=\"0\"\n" + | ||
" step=\"1\"\n" + | ||
" class=\"form-control input-lg eha-counter-input\"\n" + | ||
@@ -21,0 +22,0 @@ " ng-change=\"change\"\n" + |
@@ -1,1 +0,1 @@ | ||
angular.module("eha.counter.template",["templates/counter.template.tpl.html"]),angular.module("templates/counter.template.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/counter.template.tpl.html",'<div class="input-group">\n <span class="input-group-btn">\n <button\n class="btn btn-warning eha-counter-btn"\n type="button"\n ng-click="count = decrementTouch(count)"\n >\n <i class="fa fa-minus"></i>\n </button>\n </span>\n\n <input\n type="number"\n min="0"\n class="form-control input-lg eha-counter-input"\n ng-change="change"\n ng-model="count"\n required\n />\n\n <span class="input-group-btn">\n <button\n class="btn btn-info eha-counter-btn"\n type="button"\n ng-click="count = incrementTouch(count)"\n >\n <i class="fa fa-plus"></i>\n </button>\n </span>\n\n</div>\n')}]),function(){"use strict";var a=angular.module("eha.counter.directive",[]);a.directive("ehaCounter",function(){return{restrict:"E",templateUrl:"templates/counter.template.tpl.html",scope:{count:"=bind",change:"=onchange",name:"=name"},link:function(a,b){function c(a){return isNaN(a)||""===a||1>a}var d=b.find("button"),e=d.eq(0),f=d.eq(1);a.incrementTouch=function(a){return c(a)?1:parseInt(a,10)+1},a.decrementTouch=function(a){return c(a)?0:parseInt(a,10)-1},b.on("$destroy",function(){f.off("click"),e.off("click")})}}}),"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.counter",["eha.counter.directive","eha.counter.template"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); | ||
angular.module("eha.counter.template",["templates/counter.template.tpl.html"]),angular.module("templates/counter.template.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/counter.template.tpl.html",'<div class="input-group">\n <span class="input-group-btn">\n <button\n class="btn btn-warning eha-counter-btn"\n type="button"\n ng-click="count = decrementTouch(count)"\n >\n <i class="fa fa-minus"></i>\n </button>\n </span>\n\n <input\n type="number"\n min="0"\n step="1"\n class="form-control input-lg eha-counter-input"\n ng-change="change"\n ng-model="count"\n required\n />\n\n <span class="input-group-btn">\n <button\n class="btn btn-info eha-counter-btn"\n type="button"\n ng-click="count = incrementTouch(count)"\n >\n <i class="fa fa-plus"></i>\n </button>\n </span>\n\n</div>\n')}]),function(){"use strict";var a=angular.module("eha.counter.directive",[]);a.directive("ehaCounter",function(){return{restrict:"E",templateUrl:"templates/counter.template.tpl.html",scope:{count:"=bind",change:"=onchange",name:"=name"},link:function(a,b){function c(a){return isNaN(a)||""===a||1>a}var d=b.find("button"),e=d.eq(0),f=d.eq(1);a.incrementTouch=function(a){return c(a)?1:parseInt(a,10)+1},a.decrementTouch=function(a){return c(a)?0:parseInt(a,10)-1},b.on("$destroy",function(){f.off("click"),e.off("click")})}}}),"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.counter",["eha.counter.directive","eha.counter.template"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); |
@@ -48,3 +48,3 @@ { | ||
}, | ||
"version": "1.0.3" | ||
"version": "1.0.4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
33950
599