0

How do I define and call global methods?

For example:

   showLoading() {
      console.log('App has start loading');
   }    

   hideLoading() {
      console.log('App has finished loading');
   }

Instead of defining and calling these on every component, how would I define them on app.component.ts and call them from child components?

Thanks

Josh
  • 1,750
  • 3
  • 17
  • 27

0 Answers0