Skip to content

Instantly share code, notes, and snippets.

View wwwmarcos's full-sized avatar

Marcos Florencio wwwmarcos

View GitHub Profile
(function() {
'use strict';
angular
.module('ExceptionHandler', [])
.factory('$exceptionHandler', exceptionHandler);
exceptionHandler.$inject = ['message', '$log']
function exceptionHandler(message, $log){
return function handle(exception, cause){
(function() {
'use strict';
/**
* @desc show network status when offline.
* @example <network-state message="No conection"></network-state>
*/
angular
.module('NetworkStateDirective', [])
.directive('networkState', networkState);
(function(){
'use strict';
angular
.module('http-interceptor',[])
.config(config);
config.$inject = ['$provide', '$httpProvider'];
function config($provide, $httpProvider) {
$provide.factory('HttpInterceptor', httpInterceptor);