Pagination in Angular UI Bootstrap throwing “Error: [$compile:nonassign]”

前端 未结 2 1031
被撕碎了的回忆
被撕碎了的回忆 2020-12-17 10:39

I\'m using a fairly simple implementation of Angular Bootstrap UI\'s pagination directive, yet I keep getting an error I cannot figure out. Here\'s the relevant snippets:

2条回答
  •  春和景丽
    2020-12-17 11:13

    Just to give concrete example:

     
    

    and then tie pageChanged in your scope:

    $scope.pageChanged=function(){
          console.log("Current page" + $scope.currentPage);
      };
    

提交回复
热议问题