to lower the head should change color, but the change is not seen, if I open the menu only then change can be seen.
<ion-header-bar class="thediv" ng-class="{scrolling: isActive}">
<ion-nav-bar class="bar-clear " >
</ion-nav-bar>
</ion-header-bar>
my class:
.scrolling{
background-color: red !important;
}
and code:
if ($ionicScrollDelegate.$getByHandle('contentScroll').getScrollPosition().top > 100) {
$scope.isActive = true;
} else {
$scope.isActive = false;
}