1angular.module("myAppName").decorator(
2 "$ionicActionSheet",
3 function $ionicActionSheetDecorator( $delegate ) {
4 var originalWarn = $delegate.show;
5 $delegate.show = function decoratedWarn(msg) {
6 alert("about to show");//do whatever you want here
7 originalWarn.apply($delegate, arguments);
8 };
9 return $delegate;
10 }
11);