         return pendingTemplate()
 
     link = ($scope, $el, $attrs) ->
+        $ctrl = $el.controller()
+
         if not $attrs.tgMembershipsMemberActions?
             return $log.error "MembershipsMemberActionsDirective: the directive need a member"
 

    ]

    constructor: (@scope, @rootScope, @repo, @confirm, @rs, @params, @q, @location) ->
        @scope.filters = {}
        @scope.sectionName = "Memberships"

        promise = @.loadInitialData()
        promise.then null, ->

        Pending
        <span class="icon icon-reload"></span>
    </a>
    <a class="delete" href="" title="Delete">
        <span class="icon icon-delete"></span>
    </a>
    """) # i18n
