We have new source-generated documentation ready for the beta release, and are ready to release it extremely soon. Stay tuned. You will have documentation of all the methods, properties & attributes on every directive, controller & service.
Hi @andy I was looking around in the new docs and came across the new declarations for the ionicSideMenus controller for the directive ion-side-menus and therein it states to toggle the sidemenu with $scope.$ionicSideMenusController.toggleLeft() but that does not work for me!
I’m trying to future-proof my code so I’m using the nightly build, is there something I’m missing at the moment? Great work you guys are doing by the way!
Since this is an all-side-menu-topic I think it’s the appropriate place to ask my question as well:
How do I verify that the side menu is actually closed? I want to initialize my code after the side menu is completely closed since an iPhone 4 doesn’t perform that well when initializing a map with 100s of tiles while animating the whole thing.
Thanks.
Edit: Ooh damn. Nevermind I got it already. No need for events on this one. Just do this to verify that the side menu is closed:
$scope.$watch(
function () {
return $scope.$ionicSideMenusController.isOpenLeft();
},
function (isClosed) {
if (isClosed) {
// Do stuff here
}
}
);