angularUtils icon indicating copy to clipboard operation
angularUtils copied to clipboard

dirPagination.js:271 Pagination directive: the pagination controls cannot be used without the corresponding pagination directive, which was not found at link time.

Open rahul202 opened this issue 9 years ago • 2 comments

Hi,

Error which I am facing : dirPagination.js:271 Pagination directive: the pagination controls cannot be used without the corresponding pagination directive, which was not found at link time.

I am currently fetching data from Firebase, which has 2 way binding.

I tried including the directive in index.html[main page] and chat.html [sub page] But still getting this issue. index.html


  </head>
  <body ng-app="app" animation="slide-left-right-ios7" bgcolor="#E6E6FA">
  <div>
      <dir-pagination-controls></dir-pagination-controls>
    <div>
        <ion-nav-bar class="bar-stable">

chat.html

  <ion-item ng-if="chats.length == 0" class="textCenter">
                <h4>No messages in this room. Send message to start.</h4>
            </ion-item>
            <!--ion-item  delegate-handle="chat" class="item-borderless " ng-repeat  ="chat in chats track by chat.createdAt " type="item-text-wrap"-->
            <ion-item   class="item-borderless " dir-pagniate="chat in chats track by chat.createdAt | order by sort | itemsPerPage: 5 " type="item-text-wrap">

Just to be sure, that directive gets compiled first, i included it in index.html which is the first loading page. Still, I am facing above issue.

PS: Chats is array of chat.(if this info is of any help)

angular: 1.5.8

rahul202 avatar Sep 20 '16 21:09 rahul202

So is chat.html actually available when index.html is being rendered? It sounds like the dir-pagination-controls directive is being compiled and linked before the chat.html stuff is available.

Also, is this just a warning, not an exception, right? I made it that way because there are some legitimate edge cases where this issue comes up, but it is usually indicative of an error somewhere. In your case it you may be one of those legitimate edge cases. In which case you just need to ignore the warning, assuming everything works as expected otherwise.

michaelbromley avatar Sep 28 '16 17:09 michaelbromley

I am getting this error, eventhough it is warning but my paging links are not loaded. Not sure what to do.

prahlad7 avatar Jan 20 '17 21:01 prahlad7