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

前端 未结 2 1033
被撕碎了的回忆
被撕碎了的回忆 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:36

    The ability to use ng-model was introduced in ui-bootstrap-tpls-0.11.0.js, as explained in the changelog:

    Both pagination and pager are now integrated with ngModelController.
    * page is replaced with ng-model
    * on-select-page is removed since ng-change can now be used
    Before:
    After:

    Since you are using ui-bootstrap-tpls-0.10.0.min.js, you need to use the old syntax - with page instead of ng-model:

    
    

提交回复
热议问题