Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

ionSideMenu is-enabled Firing 20+ Times

$
0
0

@Kenyon wrote:

I've added the is-enabled property with a function call:

<ion-side-menu side="left" width="205" is-enabled="shouldSideMenuBeEnabled()">

The function is declared in my main app controller.

$scope.shouldSideMenuBeEnabled = function() {
    return true;
}

The issue is that this function is getting called 15-30 times on every screen change. That sounds like animation keyframing or something, but it's definitely not what I expected and it can't be good for performance. I could change it to be a boolean, but that would still be referenced way too often.

Am I doing something wrong?

Thanks

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>