ember-cli-pagination icon indicating copy to clipboard operation
ember-cli-pagination copied to clipboard

How to clear the pagedContent, use the willDestroy or the willDestroyElement of the View?

Open mojied opened this issue 10 years ago • 1 comments

Hi, everyone

I add paged to my comments of a blog, when I transate from one blog to another, the queryParams(?page=2) and the pagedNumber are still of the one. So, I use the willDestroy in the comments controller,but it has no effect. The doc says willDestroy called when App.reset(). The code:

https://github.com/onecoinim/website.onecoin.im/blob/master/app/controllers/comments.js#L27

  willDestroy: function () {
    this.set('pagedContent.totalPages', null);
    this.set('totalPages', null);
  }

My code: https://github.com/onecoinim/website.onecoin.im

demo: http://onecoin.im/blogs/2/comments

anyone know this?

thanks, MoJie

mojied avatar May 26 '15 01:05 mojied

@mojied hey, did you happen to figure this out?

jorgedavila25 avatar Aug 20 '15 02:08 jorgedavila25