I have an application in Angular 2
where I have some data insertion screens ( inputs
).
When the user types the infos and clicks to go forward, clicking the back button gives the information.
I tried to do something in LocalStorage
to persist this data:
PersisteDados() {
this.LocalStorageService.get('addons');
this.LocalStorageService.get('contador');
}
And I called on onInit()
to load when view
started, but did not roll.
What would be the best way to do this persistence?