So I have an attribute level directive that I use check permissions of users and hide element depending on the result of comparing the permissions. Here it is:
angular.module('mainApp').directive('ifPermission', function (authService, userInfoService) {
    return {
        restrict: 'A',
        link: function ($scope, $element, $attributes) {
            var attr = $attributes.ifPermission;
           //Some other code
        }
    }
});
I then place it on any element:
<div class="card float-card has-pointer" if-permission="Phase|Insert" ng-click="onAddDeliverableClick()">Now I want to add another attribute, however it is not a simple string, but a scope :
<div class="card float-card has-pointer" if-permission="Phase|Insert|{{Deliverable.RefDeliverable}}" ng-click="onAddDeliverableClick()">However, this does not work. The expression does not evaluate in time. What can I try?
 
    