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
  • 2,430
  • 4
  • 18
  • 30

0 Answers0