UNPKG

linagora-rse

Version:
25 lines (22 loc) 609 B
(function(angular) { 'use strict'; angular.module('linagora.esn.contact') .directive('contactListCard', contactListCard); function contactListCard( ContactShellDisplayBuilder, CONTACT_AVATAR_SIZE ) { return { restrict: 'E', templateUrl: '/contact/app/contact/list/contact-list-card.html', scope: { contact: '=' }, controller: 'contactItemController', link: function(scope) { scope.displayShell = ContactShellDisplayBuilder.build(scope.contact); scope.avatarSize = CONTACT_AVATAR_SIZE.cards; } }; } })(angular);