Answers for "ionic 1 decorator example"

3

ionic 1 decorator example

angular.module("myAppName").decorator(                                            
        "$ionicActionSheet",                                                         
        function $ionicActionSheetDecorator( $delegate ) {                           
              var originalWarn = $delegate.show;                                     
              $delegate.show = function decoratedWarn(msg) {                         
                  alert("about to show");//do whatever you want here
                originalWarn.apply($delegate, arguments);                            
              };                                                                     
              return $delegate;                                                      
        }                                                                            
);
Posted by: Guest on December-08-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language