angular-eha.radio-buttons
Advanced tools
Comparing version 1.2.5 to 2.0.0
@@ -9,7 +9,7 @@ angular.module('eha.radio-buttons.template', ['templates/radio-buttons.template.tpl.html']); | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'Y' && 'active'\"\n" + | ||
" btn-radio=\"'Y'\"\n" + | ||
" ng-class=\"model === true && 'active'\"\n" + | ||
" btn-radio=\"true\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'Y' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === true && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -21,7 +21,7 @@ " >Yes</span>\n" + | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'N' && 'active'\"\n" + | ||
" btn-radio=\"'N'\"\n" + | ||
" ng-class=\"model === false && 'active'\"\n" + | ||
" btn-radio=\"false\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'N' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === false && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -28,0 +28,0 @@ " >No</span>\n" + |
@@ -9,7 +9,7 @@ angular.module('eha.radio-buttons.template', ['templates/radio-buttons.template.tpl.html']); | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'Y' && 'active'\"\n" + | ||
" btn-radio=\"'Y'\"\n" + | ||
" ng-class=\"model === true && 'active'\"\n" + | ||
" btn-radio=\"true\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'Y' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === true && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -21,7 +21,7 @@ " >Yes</span>\n" + | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'N' && 'active'\"\n" + | ||
" btn-radio=\"'N'\"\n" + | ||
" ng-class=\"model === false && 'active'\"\n" + | ||
" btn-radio=\"false\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'N' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === false && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -28,0 +28,0 @@ " >No</span>\n" + |
@@ -9,7 +9,7 @@ angular.module('eha.radio-buttons.template', ['templates/radio-buttons.template.tpl.html']); | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'Y' && 'active'\"\n" + | ||
" btn-radio=\"'Y'\"\n" + | ||
" ng-class=\"model === true && 'active'\"\n" + | ||
" btn-radio=\"true\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'Y' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === true && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -21,7 +21,7 @@ " >Yes</span>\n" + | ||
" ng-model=\"model\"\n" + | ||
" ng-class=\"model === 'N' && 'active'\"\n" + | ||
" btn-radio=\"'N'\"\n" + | ||
" ng-class=\"model === false && 'active'\"\n" + | ||
" btn-radio=\"false\"\n" + | ||
" >\n" + | ||
" <span\n" + | ||
" ng-class=\"model === 'N' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" ng-class=\"model === false && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n" + | ||
" translate\n" + | ||
@@ -28,0 +28,0 @@ " >No</span>\n" + |
@@ -1,1 +0,1 @@ | ||
angular.module("eha.radio-buttons.template",["templates/radio-buttons.template.tpl.html"]),angular.module("templates/radio-buttons.template.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/radio-buttons.template.tpl.html","<div class=\"eha-radio-buttons\">\n <button\n class=\"btn yes\"\n ng-model=\"model\"\n ng-class=\"model === 'Y' && 'active'\"\n btn-radio=\"'Y'\"\n >\n <span\n ng-class=\"model === 'Y' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n translate\n >Yes</span>\n </button>\n <button\n class=\"btn no\"\n ng-model=\"model\"\n ng-class=\"model === 'N' && 'active'\"\n btn-radio=\"'N'\"\n >\n <span\n ng-class=\"model === 'N' && 'fa fa-check-circle' || 'fa fa-circle-o'\"\n translate\n >No</span>\n </button>\n</div>\n")}]),function(){"use strict";var a=angular.module("eha.radio-buttons",["eha.radio-buttons.directive","eha.radio-buttons.template"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.radio-buttons.directive",["ui.bootstrap.buttons"]);a.directive("ehaRadioButtons",function(){return{restrict:"EA",scope:{model:"="},templateUrl:function(a,b){return b.templateUrl||"templates/radio-buttons.template.tpl.html"}}}),"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); | ||
angular.module("eha.radio-buttons.template",["templates/radio-buttons.template.tpl.html"]),angular.module("templates/radio-buttons.template.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/radio-buttons.template.tpl.html",'<div class="eha-radio-buttons">\n <button\n class="btn yes"\n ng-model="model"\n ng-class="model === true && \'active\'"\n btn-radio="true"\n >\n <span\n ng-class="model === true && \'fa fa-check-circle\' || \'fa fa-circle-o\'"\n translate\n >Yes</span>\n </button>\n <button\n class="btn no"\n ng-model="model"\n ng-class="model === false && \'active\'"\n btn-radio="false"\n >\n <span\n ng-class="model === false && \'fa fa-check-circle\' || \'fa fa-circle-o\'"\n translate\n >No</span>\n </button>\n</div>\n')}]),function(){"use strict";var a=angular.module("eha.radio-buttons",["eha.radio-buttons.directive","eha.radio-buttons.template"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.radio-buttons.directive",["ui.bootstrap.buttons"]);a.directive("ehaRadioButtons",function(){return{restrict:"EA",scope:{model:"="},templateUrl:function(a,b){return b.templateUrl||"templates/radio-buttons.template.tpl.html"}}}),"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); |
{ | ||
"name": "angular-eha.radio-buttons", | ||
"version": "1.2.5", | ||
"version": "2.0.0", | ||
"description": "Stylish radio button group", | ||
@@ -5,0 +5,0 @@ "main": "dist/radio-buttons.template.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30879