angular-eha.back-button
Advanced tools
Comparing version 3.10.0 to 3.10.1
{ | ||
"name": "angular-eha.back-button", | ||
"version": "3.10.0", | ||
"version": "3.10.1", | ||
"description": "A back button directive providing a simple interface to `window.history` and `$state.go()`", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -88,1 +88,15 @@ ;(function() { | ||
}()); | ||
(function() { | ||
'use strict'; | ||
var ngModule = angular.module('eha.back-button', [ | ||
'eha.back-button.directive', | ||
'templates/back-button.directive.tpl.html' | ||
]); | ||
// Check for and export to commonjs environment | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = ngModule; | ||
} | ||
})(); |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var a=angular.module("eha.back-button.directive",[]).directive("ehaBackButton",["$window","$log","$injector",function(a,b,c){try{var d=c.get("$state");b.debug("Found $state")}catch(e){b.debug("No $state")}return{restrict:"E",templateUrl:"templates/back-button.directive.tpl.html",scope:{state:"@state",params:"@params"},link:function(c){c.back=function(){if(d&&c.state){var e=c.params?JSON.parse(c.params):{};for(var f in e)"object"==typeof e[f]&&(e[f]=JSON.stringify(e[f]));d.go(c.state,e)}else a.history?a.history.back(-1):b.error("No previous state found.")}}}}]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); | ||
!function(){"use strict";var a=angular.module("eha.back-button.directive",[]).directive("ehaBackButton",["$window","$log","$injector",function(a,b,c){try{var d=c.get("$state");b.debug("Found $state")}catch(e){b.debug("No $state")}return{restrict:"E",templateUrl:"templates/back-button.directive.tpl.html",scope:{state:"@state",params:"@params"},link:function(c){c.back=function(){if(d&&c.state){var e=c.params?JSON.parse(c.params):{};for(var f in e)"object"==typeof e[f]&&(e[f]=JSON.stringify(e[f]));d.go(c.state,e)}else a.history?a.history.back(-1):b.error("No previous state found.")}}}}]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.back-button",["eha.back-button.directive","templates/back-button.directive.tpl.html"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(); |
@@ -89,2 +89,16 @@ ;(function() { | ||
(function() { | ||
'use strict'; | ||
var ngModule = angular.module('eha.back-button', [ | ||
'eha.back-button.directive', | ||
'templates/back-button.directive.tpl.html' | ||
]); | ||
// Check for and export to commonjs environment | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = ngModule; | ||
} | ||
})(); | ||
angular.module('eha.back-button.templates', ['templates/back-button.directive.tpl.html']); | ||
@@ -91,0 +105,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";var a=angular.module("eha.back-button.directive",[]).directive("ehaBackButton",["$window","$log","$injector",function(a,b,c){try{var d=c.get("$state");b.debug("Found $state")}catch(e){b.debug("No $state")}return{restrict:"E",templateUrl:"templates/back-button.directive.tpl.html",scope:{state:"@state",params:"@params"},link:function(c){c.back=function(){if(d&&c.state){var e=c.params?JSON.parse(c.params):{};for(var f in e)"object"==typeof e[f]&&(e[f]=JSON.stringify(e[f]));d.go(c.state,e)}else a.history?a.history.back(-1):b.error("No previous state found.")}}}}]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),angular.module("eha.back-button.templates",["templates/back-button.directive.tpl.html"]),angular.module("templates/back-button.directive.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/back-button.directive.tpl.html",'<button\n ng-click="back()"\n type="button"\n class="btn btn-default btn-lg btn-block">\n <i class="fa fa-arrow-circle-left"></i>\n <span translate>Back</span>\n</button>\n')}]); | ||
!function(){"use strict";var a=angular.module("eha.back-button.directive",[]).directive("ehaBackButton",["$window","$log","$injector",function(a,b,c){try{var d=c.get("$state");b.debug("Found $state")}catch(e){b.debug("No $state")}return{restrict:"E",templateUrl:"templates/back-button.directive.tpl.html",scope:{state:"@state",params:"@params"},link:function(c){c.back=function(){if(d&&c.state){var e=c.params?JSON.parse(c.params):{};for(var f in e)"object"==typeof e[f]&&(e[f]=JSON.stringify(e[f]));d.go(c.state,e)}else a.history?a.history.back(-1):b.error("No previous state found.")}}}}]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),function(){"use strict";var a=angular.module("eha.back-button",["eha.back-button.directive","templates/back-button.directive.tpl.html"]);"undefined"!=typeof module&&module.exports&&(module.exports=a)}(),angular.module("eha.back-button.templates",["templates/back-button.directive.tpl.html"]),angular.module("templates/back-button.directive.tpl.html",[]).run(["$templateCache",function(a){a.put("templates/back-button.directive.tpl.html",'<button\n ng-click="back()"\n type="button"\n class="btn btn-default btn-lg btn-block">\n <i class="fa fa-arrow-circle-left"></i>\n <span translate>Back</span>\n</button>\n')}]); |
{ | ||
"name": "angular-eha.back-button", | ||
"version": "3.10.0", | ||
"version": "3.10.1", | ||
"description": "A back button directive providing a simple interface to `window.history` and `$state.go()`", | ||
@@ -5,0 +5,0 @@ "main": "dist/angular-eha.back-button.templates.js", |
# angular-eha.back-button | ||
[![Build Status](https://travis-ci.org/eHealthAfrica/angular-eha.back-button.svg?branch=master)](https://travis-ci.org/eHealthAfrica/angular-eha.back-button) | ||
[![Build Status](https://travis-ci.org/eHealthAfrica/angular-eha.back-button.svg)](https://travis-ci.org/eHealthAfrica/angular-eha.back-button) ![Dependecy Status](https://david-dm.org/eHealthAfrica/angular-eha.back-button.svg) ![Dev Dependecy Status](https://david-dm.org/eHealthAfrica/angular-eha.back-button/dev-status.svg) | ||
@@ -5,0 +5,0 @@ Angular.js `<eha-back-button />` Back button directive. Provides a simple interface to `window.history`. |
@@ -19,6 +19,5 @@ describe('<eha-back-button></eha-back-button> Directive', function() { | ||
} | ||
} | ||
}; | ||
beforeEach(module('templates/back-button.directive.tpl.html')); | ||
beforeEach(module('eha.back-button.directive', function($provide) { | ||
beforeEach(module('eha.back-button', function($provide) { | ||
$provide.value('$state', $state); | ||
@@ -25,0 +24,0 @@ $provide.value('$window', $window); |
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
40436
18
565