Angular UI-Bootstrap Pagination and Transclude

83 views
Skip to first unread message

João Saraiva

unread,
Jun 19, 2014, 9:52:27 AM6/19/14
to ang...@googlegroups.com
Hello,

I'm having trouble with ui-bootstrap pagination directive and ng-transclude.

In the following plunker: http://plnkr.co/edit/RfFdJYD8nEqwzD43TpuY?p=preview the first pagination works well, but when I put the pagination inside one 'Pane' - a custom directive with one header and one div with ng-transclude - it doesn't work.

The 'Set Current Page to:3' doesn't work (sometimes works only one time) and the pageChanged always return the same number - see in console.

Anyone know of any issues with UI-Bootstrap Pagination and Transclude?

Thanks,
js

Phil Boltt

unread,
Jun 20, 2014, 3:26:58 AM6/20/14
to ang...@googlegroups.com
Hi,

I'm also getting up to speed on angular, so this is probably an incomplete explanation.  The problem doesn't appear to be with transclude, but rather your setting of values on the $scope object rather than setting an object.  Try setting $scope.transclude = {totalItems:  64, currentPage: 4}; and updating the html to refer to transclude.



Hope that helps.
Phil

João Saraiva

unread,
Jun 20, 2014, 7:28:22 AM6/20/14
to ang...@googlegroups.com
Yes, that helps.

I'm going to watch the video to try understand this.

Thanks,
js


--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/RUyAjB2VN_8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages