$ionicHistory.clearCache() now returns promise so you can ensure cache is cleared …#3724
Closed
abcd-ca wants to merge 1 commit intoionic-team:masterfrom
Closed
$ionicHistory.clearCache() now returns promise so you can ensure cache is cleared …#3724abcd-ca wants to merge 1 commit intoionic-team:masterfrom
abcd-ca wants to merge 1 commit intoionic-team:masterfrom
Conversation
…before using .go when navigating to a cached view. Before, cache wouldn't be cleared before view was navigated to)
|
+1 Need that so much. Please merge. Works fine |
|
+1. So important feature |
Whiskey24
added a commit
to Whiskey24/GoingDutchApp
that referenced
this pull request
Jul 20, 2015
This pull request is not in yet: ionic-team/ionic-framework#3724
|
+1. otherwise i can't find a good way to go back and refresh page |
|
+1 |
Contributor
|
bump, much needed feature |
|
Thanks so much, @abcd-ca! :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables promise chaining. Otherwise in the example below, cache would not be clear before $state.go call and app.home would not update.
Example:
Note, app.home is caching its view by default (I have not set cache:false in its state definition). In the scenario above, I want app.home to be cached in most cases except after leaving my preferences view which affects what is displayed at app.home.