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"
};
}])