Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49222

$ionicHistory.goBack() clears textbox value

$
0
0

@junerockwell wrote:

  1. From View A, there's a button I click to go to View B using $state.go('viewB');

  2. View B has a <input type="text" />.

  3. I click <ion-nav-back-button> which triggers $ionicHistory.goBack() to go back to View A.

  4. If I click the button in View A to View B again, the value I typed in the textbox in View B is gone. The textbox is just empty.

Is there a way to prevent this or what is the way to solve this?

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 49222

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>