"use strict"; (function () { 'use strict'; angular.module('changeModule') .directive('changePopoverContent', [ function () { return { restrict: 'E', replace: true, templateUrl: 'views/change/change-popover-content.html', link: function (scope) { scope.info = scope.changeRequest.additionalInformation; //Chat availability is based on loginId property. So to make it persistent creating this property manually scope.assignee = scope.changeRequest.additionalInformation.assignee; scope.manager = scope.changeRequest.additionalInformation.manager; scope.assignee.loginId = scope.assignee.id; scope.manager.loginId = scope.manager.id; } }; } ]); })();