UNPKG

angular-growl-notifications

Version:

![AngularJS Growl Notifications](http://i.imgur.com/F4ttQxo.png)

2 lines 1.74 kB
/*! angular-growl-notifications 08-03-2017 */ !function(){angular.module("growlNotifications.config",[]).value("growlNotifications.config",{debug:!0}),angular.module("growlNotifications.directives",[]),angular.module("growlNotifications.filters",[]),angular.module("growlNotifications.services",[]),angular.module("growlNotifications",["growlNotifications.config","growlNotifications.directives","growlNotifications.filters","growlNotifications.services"])}(),function(){function a(a,c,d){var e={ttl:a.options.ttl||5e3};return{restrict:"AE",scope:!0,controller:b,controllerAs:"$growlNotification",link:function(b,f,g,h){var i=angular.extend({},e,b.$eval(g.growlNotificationOptions)),j=1;g.ttl&&(i.ttl=b.$eval(g.ttl)),c.move(f,a.element),g.onOpen&&b.$eval(g.onOpen),-1!==i.ttl&&i.ttl!==!1&&(h.timer=d(function(){c.leave(f),g.onClose&&b.$eval(g.onClose)},i.ttl,j))}}}function b(a,b,c,d,e){this.timer=null,this.remove=function(){b.leave(a),this.timer&&(e.cancel(this.timer),c.onClose&&d.$eval(c.onClose))}}a.$inject=["growlNotifications","$animate","$interval"],b.$inject=["$element","$animate","$attrs","$scope","$interval"],angular.module("growlNotifications.directives").directive("growlNotification",a)}(),function(){function a(a){return{restrict:"AE",link:function(b,c,d){a.element=c}}}a.$inject=["growlNotifications"],angular.module("growlNotifications.directives").directive("growlNotifications",a)}(),function(){function a(){var a={ttl:5e3};this.setOptions=function(b){return angular.extend(a,b),this},this.ttl=function(b){return angular.isDefined(b)?(a.ttl=b,this):a.ttl},this.$get=function(){function b(){this.options=a,this.element=null}return new b}}angular.module("growlNotifications.services").provider("growlNotifications",a)}();