docs(navView): forward view caching

This commit is contained in:
Adam Bradley
2015-01-16 15:45:03 -06:00
parent add5de8d90
commit 6cf336ae83

View File

@@ -86,7 +86,16 @@
* are being disconnected from the watch cycle. Because scopes are not being destroyed and
* recreated, controllers are not loading again on a subsequent viewing. If the app/controller
* needs to know when a view has entered or has left, then view events emitted from the
* {@link ionic.directive:ionView} scope, such as `$ionicView.enter`, may be useful
* {@link ionic.directive:ionView} scope, such as `$ionicView.enter`, may be useful.
*
* By default, when navigating back in the history, the "forward" views are removed from the cache.
* If you navigate forward to the same view again, it'll create a new DOM element and controller
* instance. Basically, any forward views are reset each time. This can be configured using the
* {@link ionic.provider:$ionicConfigProvider}:
*
* ```js
* $ionicConfigProvider.views.forwardCache(true);
* ```
*
* #### Disable cache globally
*