docs(ngView): add param info

Closes #5734
Closes #5741
This commit is contained in:
Gias Kay Lee 2014-01-11 17:42:25 +08:00 committed by Igor Minar
parent c3ab915d2e
commit de065f1961

View file

@ -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">