Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit de065f1

Browse files
Gias Kay LeeIgorMinar
Gias Kay Lee
authored andcommitted
docs(ngView): add param info
Closes #5734 Closes #5741
1 parent c3ab915 commit de065f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ngRoute/directive/ngView.js

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
2626
*
2727
* @scope
2828
* @priority 400
29+
* @param {string=} onload Expression to evaluate whenever the view updates.
30+
*
31+
* @param {string=} autoscroll Whether `ngView` should call {@link ng.$anchorScroll
32+
* $anchorScroll} to scroll the viewport after the view is updated.
33+
*
34+
* - If the attribute is not set, disable scrolling.
35+
* - If the attribute is set without value, enable scrolling.
36+
* - Otherwise enable scrolling only if the expression evaluates to truthy value.
2937
* @example
3038
<example module="ngViewExample" deps="angular-route.js" animations="true">
3139
<file name="index.html">

0 commit comments

Comments
 (0)