Is there a way to delay the initialization of a directive?
In my case, I’m loading a map as soon as someone picks a (side)menu item. But the menu then animates to a ‘closed’ position. During this animation, the map starts initializing and my iPhone 4 doesn’t like that. It’s al shaky and non-smooth for a second.
So I want these events to be timed right behind each other. Using a
$scope.$watch() I’m already able to execute code as soon as the
$ionicSideMenusController is completely closed but the directive initializes asynchronously of course.