Previous data is still present after $ state.go () in Ionic Framework with Crosswalk

Why is this after I filled out the necessary data, and then send it to my server after sending, I redirect the user to some other page. When the user returned to this page, the information that he filled in is still there. How can i fix this? It seems that the information I fill in is cached when in fact I did not use such technology in my application. How can I clear previously entered data?

+4
source share
1 answer

In the latest ion release (v1.0.0-beta.14), they introduced caching views. See IonView docs for more information on this.

You can disable caching for your route like this

.state('your.state', {
                url: '/your/url',
                cache: false,
                views: {
                    // ...
                }
            })

or right in your mind

<ion-view cache-view="false" view-title="My Title!">

See ionNavView docs

Or you can even disable the cache globally for testing:

$ionicConfigProvider.views.maxCache(0);
+8
source

All Articles