Global methods

How do I define and call global methods?

For example:

showLoading()

hideLoading()

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

Thanks

In angular you basically dont do this

Ypu import and inject in the constructor for each class using the features of other services and conponents

If you mind declaring many stuff and repeating code you could bundle stuff in modules but I reckon that is not what aspire either

Hello,

you maybe want a provider/service described her

Best regards, anna-liebr