From de065f196129766f7e774ccf0a24916db2e0f06d Mon Sep 17 00:00:00 2001 From: Gias Kay Lee Date: Sat, 11 Jan 2014 17:42:25 +0800 Subject: docs(ngView): add param info Closes #5734 Closes #5741 --- src/ngRoute/directive/ngView.js | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- cgit v1.2.3