ember-cli-pagination
ember-cli-pagination copied to clipboard
How to clear the pagedContent, use the willDestroy or the willDestroyElement of the View?
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 hey, did you happen to figure this out?