showing results for - "ionicactionsheet decorator example"
Mindy
12 Mar 2017
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); 
similar questions
ionic 1 decorator example