mercredi 25 mai 2016

Preserve scrolling position in emberJS

I'm using ember v2.5.0. I want my images page to scroll me where I was before going to details page when I hit the "back" link.

I found this about the problem :

http://ift.tt/1szESD1

But when I try to include it in my project, it gives me error

routes/index.js: line 130, col 29, 'opts' is defined but never used.
routes/index.js: line 154, col 13, 'position' is defined but never used.
routes/index.js: line 155, col 13, 'viewportHeight' is defined but never used.

Also, in the code it says ThingsView at the end and I dont know what to write there because I'm using a list not a view.

This is my twiddle :

http://ift.tt/1WNVXWn

Can anyone help me integrate this into my project or offer me something else? I'm stucked with this. Thanks.




Aucun commentaire:

Enregistrer un commentaire