ion-content setting overflow-scroll="{{conditional()}}" not working
Attempting to set overflow-scroll conditionally, depending if we are running in desktop browser or not.
This will soon be a global configuration, and the attribute is currently receiving an overhaul. cc/ @perrygovier
+1 I have the same issue here
+1
Instead of that, you could do this.
.config(function($ionicConfigProvider){
if(condition1) {
$ionicConfigProvider.scrolling.jsScrolling(false)
} else {
$ionicConfigProvider.scrolling.jsScrolling(true)
}
});
Or in a controller
.controller('MainCtrl', function($ionicConfig){
$ionicConfig.scrolling.jsScrolling(false)
});
@mhartington I have an older version of ionic, jsScrolling requires updating ionic and upgrading requires doing a lot of changes to match the new ionic version, is there any workarounds for overflow-scroll to work as a conditional attribute?
Unfortunately no, there isn't.
+1 :(