Preserve inputted value in input

How to preserve the inputted value in input even when page change?

Store the value in some rootscope variable or keep the history of a page enable

IStore input in a provider variable, and pass the variable to the page on return. On your page…

storedInput: string;
this.storedInput = " ";

Works on textarea, no clue about ‘input’. It’s worth a try. The ‘placeholder’ property can be manipulated in the same fashion.


If you’re not using a provider for some reason, pass the variable in navParams