I have been using Ionic Storage in the Ionic 2 application and have been trying for the past few days to find the best way to implement a service that stores locally stored data in synchronization with components.
I have no problems using Storage as-is (I can only get set and get ), but the service will be able to synchronize data with the component and then return to the service - this is a problem.
I guess the best way would be to use observables with rxjs, but I cannot find articles that are not conflicting / incompatible, or not use the case I'm looking for. Most of them seem to have data in only one way. Link 1 Link 2
What would be the best way to save one Storage object ( user , for example), synchronized between the service and the components, being able to modify it, for example, using [(ngModel)] on a select element?
source share