0
I have an application in Angular 2 where I have some data entry screens (inputs).
When the user enters the Iprs and clicks to advance, when clicking the Back button, the information disappears.
I tried to do something in LocalStorage to persist this data:
PersisteDados() {
this.LocalStorageService.get('addons');
this.LocalStorageService.get('contador');
}
And I called him on onInit() to carry when the view It started, but it didn’t.
What would be the best way to make this persistence?