function compile() {
                var html = '<div>' +
                    '<h1 dir-paginate-start="item in collection | itemsPerPage: 3" current-page="currentPage">{{ item }}</h1>' +
                    '<div dir-paginate-end> yo <ul class="options"><li ng-repeat="option in options">{{ option }} : {{ item }}</li></ul></div>' +
                    '</div> ';
                $scope.options = ['option1', 'option2', 'option3'];
                $scope.collection = myCollection;
                $scope.currentPage = 1;
                containingElement.append($compile(html)($scope));
                $scope.$apply();
            }
See https://github.com/michaelbromley/angularUtils/issues/92