notificationModule.js 350 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
'use strict';

angular.module('dgc.system.notification', ['ui.router']).constant('ColorCoding', {
    info: 'success',
    error: 'danger'
}).run(function($rootScope, NotificationService) {
    $rootScope.$on('$locationChangeSuccess', function(evt, from, to) {
        if (from !== to) {
            NotificationService.reset();
        }
    });
});