angular-eha.counter
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -14,3 +14,3 @@ ;(function () { | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -17,0 +17,0 @@ count: '=bind', |
@@ -14,3 +14,3 @@ ;(function () { | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -17,0 +17,0 @@ count: '=bind', |
@@ -52,3 +52,3 @@ angular.module('eha.counter.template', ['templates/counter.template.tpl.html']); | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -55,0 +55,0 @@ count: '=bind', |
@@ -14,3 +14,3 @@ ;(function () { | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -17,0 +17,0 @@ count: '=bind', |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var a=angular.module("eha.counter.directive",[]);a.directive("ehaCounter",function(){return{restrict:"E",templateUrl:"views/templates/counter.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"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); | ||
!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"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); |
@@ -52,3 +52,3 @@ angular.module('eha.counter.template', ['templates/counter.template.tpl.html']); | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -55,0 +55,0 @@ count: '=bind', |
@@ -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:"views/templates/counter.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 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.2" | ||
"version": "1.0.3" | ||
} |
@@ -14,3 +14,3 @@ ;(function () { | ||
restrict: 'E', | ||
templateUrl: 'views/templates/counter.html', | ||
templateUrl: 'templates/counter.template.tpl.html', | ||
scope: { | ||
@@ -17,0 +17,0 @@ count: '=bind', |
33568