UNPKG

angular-global-alerts

Version:
13 lines (8 loc) 232 B
import angular from 'angular'; angular .module('app', [ require('angular-global-alerts') ]) .run(['$rootScope', '$http', function($rootScope, $http){ $rootScope.showError = function() { $http.get('/deadroute'); } }])