                 else
                     pages.push({classes: "page", num: i, type: "page"})
 
-            $pagEl.html(template(options))
+            html = template(options)
+            html = $compile(html)($scope)
+
+            $pagEl.html(html)
+            $pagEl.show()
 
         $scope.$watch "memberships", (value) ->
             # Do nothing if value is not logical true


    return {link:link}

module.directive("tgMemberships", ["$tgTemplate", MembershipsDirective])


#############################################################################

            $confirm.askOnDelete(title, message).then (finish) ->
                onSuccess = ->
                    finish()

                    if $scope.page > 1 && ($scope.count - 1) <= $scope.paginatedBy
                        $ctrl.selectFilter("page", $scope.page - 1)

                    $ctrl.loadMembers()

                    text = $translate.instant("ADMIN.MEMBERSHIP.SUCCESS_DELETE")
