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.
http://plnkr.co/edit/6HF6XFRLvlC9LKDneNw9?p=preview
Then watch
this...
https://www.youtube.com/watch?v=ZhfUv0spHCY&list=PLfYoDFd6-GTqjY5m_VLAPYYYEh9LnBbx2&index=2
Hope that helps.
Phil
On Friday, June 20, 2014 1:52:27 AM UTC+12, João Saraiva wrote:
>
> 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
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.