How can refresh Data when Sidemenu open?

Hi ionicguru’s :-),

I would like , if I open a side menu to read data again . How so it works ?
Thanks for help in advance

Sebastian

open the side menu manually with a click and a function:
http://ionicframework.com/docs/api/service/$ionicSideMenuDelegate/

$scope.toggleLeftSideMenu = function() {

  $ionicSideMenuDelegate.toggleLeft();

  if ($ionicSideMenuDelegate.isOpenLeft()) {
    // refresh
  }
};
1 Like

Great thanks a lot for your help