UNPKG

linagora-rse

Version:
23 lines (19 loc) 648 B
(function() { 'use strict'; angular.module('esn.user-notification') .directive('esnUserNotificationToggler', esnUserNotificationToggler); function esnUserNotificationToggler($popover, ESN_USER_NOTIFICATION_POPOVER_OPTIONS) { return { controller: 'EsnUserNotificationTogglerController', controllerAs: 'ctrl', link: link, restrict: 'E', replace: true, scope: true, templateUrl: '/views/modules/user-notification/toggler/user-notification-toggler.html' }; function link(scope, element) { scope.popover = $popover(element, ESN_USER_NOTIFICATION_POPOVER_OPTIONS); } } })();