Simple store data in Array or JSON


I am new with Ionic and I am looking for a solution. I am started with a blank ionic app. And I want to add a setting page to application. I made variable:
name: string;
and in html
<ion-input clearInput [(ngModel)]=“name”>
and it works but when I touch a burger icon (menu) and go thru to other page like a home page and turn back to settings page ten field is empty… How to simple store data in Ionic without backend? In future I will write backend in spring boot (RESTful app) but now I need standalone Ionic app.

Best wishes!