diff options
| author | Gias Kay Lee | 2014-01-11 17:42:25 +0800 |
|---|---|---|
| committer | Igor Minar | 2014-01-11 14:18:07 -0800 |
| commit | de065f196129766f7e774ccf0a24916db2e0f06d (patch) | |
| tree | 5961ec0887825ee055801682c34847ce5e484ca7 | |
| parent | c3ab915d2ef8606c298cb4ae2f5cc8a30d3b250a (diff) | |
| download | angular.js-de065f196129766f7e774ccf0a24916db2e0f06d.tar.bz2 | |
docs(ngView): add param info
Closes #5734
Closes #5741
| -rw-r--r-- | src/ngRoute/directive/ngView.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index 0ae1c4fc..dde12004 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -26,6 +26,14 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory); * * @scope * @priority 400 + * @param {string=} onload Expression to evaluate whenever the view updates. + * + * @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll + * $anchorScroll} to scroll the viewport after the view is updated. + * + * - If the attribute is not set, disable scrolling. + * - If the attribute is set without value, enable scrolling. + * - Otherwise enable scrolling only if the expression evaluates to truthy value. * @example <example module="ngViewExample" deps="angular-route.js" animations="true"> <file name="index.html"> |
