javascript - Previous data still present after $state.go() in Ionic Framework with Crosswalk - Stack Overflow

why is it after I fill up the necessary inputs then send to my server after sending I redirect user to

why is it after I fill up the necessary inputs then send to my server after sending I redirect user to some other page. When a user went back to that page, the info he filled still present in there. How can I fix this? It seems the info I filled is cached when in fact I didn't use such technology in my application. How can I clear the input data done before?

why is it after I fill up the necessary inputs then send to my server after sending I redirect user to some other page. When a user went back to that page, the info he filled still present in there. How can I fix this? It seems the info I filled is cached when in fact I didn't use such technology in my application. How can I clear the input data done before?

Share Improve this question asked Feb 1, 2015 at 11:19 user3569641user3569641 9221 gold badge19 silver badges51 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

In the latest ionic release (v1.0.0-beta.14) they introduced view caching. See IonView docs for more infos on that.

You could deactivate caching in for your route like this

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

or directly in your view

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

See ionNavView docs

Or you might even want to disable cache globally for testing:

$ionicConfigProvider.views.maxCache(0);

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744389560a4571838.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信