cordova - $anchorScroll in Ionic 2? Scroll to element with ID -
any way $anchorscroll in ionic 2/angular2 of angular 1.x?
trying scroll element on page. tried ng2-page-scroll https://github.com/nolanus/ng2-page-scroll
not sure if m doing right, followed through tutorial , got error:
parseerror: 'import' , 'export' may appear 'sourcetype: module'
i think doesnt work latest ionic 2 release anymore. wish there's easier way of doing it, work around?
i in same situation, wanted scroll next page/element each click of button.
i looked @ same options mentioned, , found in ion-slides (http://ionicframework.com/docs/v2/api/components/slides/slides/), can set direction 'vertical', did trick me.
don't know if can use case.
otherwise, can content, , scrollto function. http://ionicframework.com/docs/v2/api/components/content/content/
Comments
Post a Comment