Hello,
I am trying to scroll to some element by API call,
$uiViewScroll(angular.element(document.getElementById(“SOMEID”)));
it success, but I can’t scroll back to top (by gesture) after that. Any idea ?
Hello,
I am trying to scroll to some element by API call,
$uiViewScroll(angular.element(document.getElementById(“SOMEID”)));
it success, but I can’t scroll back to top (by gesture) after that. Any idea ?
Anybody know how? thanks in advance.
OK I find a solution, the following code works:
$location.hash(<SOMEID>);
$ionicScrollDelegate.anchorScroll();