UNPKG

angular-growl-notifications

Version:

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

40 lines (32 loc) 776 B
(function () { /** * Create directive definition object * * @param growlNotifications */ function growlNotificationsDirective(growlNotifications) { return { /** * Allow compilation via attributes as well so custom * markup can be used */ restrict: 'AE', /** * Post link function * * @param scope * @param iElem * @param iAttrs */ link: function (scope, iElem, iAttrs) { growlNotifications.element = iElem; } }; } // Inject dependencies growlNotificationsDirective.$inject = ['growlNotifications']; // Export angular .module('growlNotifications.directives') .directive('growlNotifications', growlNotificationsDirective); })();