Hi! Simple question, are there any counterpart for constructor? I need to clear some things to avoid leaks so I am looking for the function that gets called before the PROVIDER is destroyed.
It is ionViewWillUnload for Pages right? how about for Service/Providers?
No what I meant is before the app is closed, I want to clear all of my subscriptions by calling unsubscribe in each and every subscription, just to avoid leaks, or it doesn’t matter because…
I’ve read somewhere that:
“For other types of injectable (service, factory, provider) the concept of a destructor is probably not useful, since they are singletons which last for the duration of the app’s life.”