0
Der HTML-Code wird wie folgtionische scrollTop funktioniert nicht
<div class="scrollTop" ng-show="showHide" ng-click="scrollTop($event)"></div>
js Code
$scope.pubScroll = function() {
$scope.showHide = $ionicScrollDelegate.getScrollPosition().top>50?true:false;
console.log($scope.showHide)
}
Die Konsole ist richtig, aber Element in Seite ändert sich nicht, ein- oder ausblenden , wo das Problem ist?
Die Funktion pubScroll war bind on ' ion-content>' –