This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular | |
.module('ExceptionHandler', []) | |
.factory('$exceptionHandler', exceptionHandler); | |
exceptionHandler.$inject = ['message', '$log'] | |
function exceptionHandler(message, $log){ | |
return function handle(exception, cause){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
/** | |
* @desc show network status when offline. | |
* @example <network-state message="No conection"></network-state> | |
*/ | |
angular | |
.module('NetworkStateDirective', []) | |
.directive('networkState', networkState); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
'use strict'; | |
angular | |
.module('http-interceptor',[]) | |
.config(config); | |
config.$inject = ['$provide', '$httpProvider']; | |
function config($provide, $httpProvider) { | |
$provide.factory('HttpInterceptor', httpInterceptor); |
NewerOlder