Best way to provide data from storage throughout the application

I am a newbie and come from PHP web development.
I would like to be able to access data stored in the storage (SQLite, etc. not the local storage) from the whole application. That is, read once and then store this in “global” variables, on which I can then read the values from all pages without having to make an access to the storage each time. What is the best way to go about this?
I work with Ionic 5 and Angular 10.

Hi

Welcome

I suggest you to do the full Tour of Heroes example tutorial ar angular.io and more specifically the part of service providers

Next you will want to to study the rxjs patterns for managing State throughout the app

People have been there before: Having tough time with the Observer pattern

Regards

Tom

2 Likes