Angular directive link function not called during pagination

自古美人都是妖i 提交于 2020-01-16 00:48:10

问题


i am using Angular directive which has a link function. The dom page has the pagination and this directive is present in the second page and because of which the link function is not getting executed when i navigate to second page. Can you let me know how to resolve this issue ?

angular.module("module")
.directive("directive", function (){
    return {
        restrict: "C",
        templateUrl: templateUrl,
        replace: true,
        link: function (scope, element, attrs) {

            //function to be executed


        },
        controller: "controller"
    };

}])

来源:https://stackoverflow.com/questions/28329451/angular-directive-link-function-not-called-during-pagination

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!