From 8f7e511fd170852fe629657d0780c787b6d34aa4 Mon Sep 17 00:00:00 2001 From: Gias Kay Lee Date: Sat, 11 Jan 2014 17:42:25 +0800 Subject: [PATCH] docs(ngView): add param info Closes #5734 --- 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 0ae1c4fc753b..dde120040f0c 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