Hello everyone, I would like to know where/how should I put the “global” code that I want to execute all time while the app is running, for example, I have a listener that checks if the app has internet connection.
There is any general .ts file that is over all the page files? or any other common way to place that instead of copy it in every page?
I created a provider with a “console.log(‘hello’);” inside, I imported and added the provider ni the app.module.ts, and imported it in my home.ts root page, but I don’t see the console.log any idea?
EDIT: Nvm i got it, was a url mistake in the import