docs: tView.preOrderHooks and tView.preOrderCheckHooks docs update (#39497)

This commit updates the docs for the `tView.preOrderHooks` and `tView.preOrderCheckHooks` TView
fields. Current docs are not up-to-date as it was pointed out in #39439.

Closes #39439.

PR Close #39497
This commit is contained in:
Andrew Kushnir 2020-10-29 13:00:32 -07:00 committed by Joey Perrott
parent fe343d8d96
commit c83b2ad87f
1 changed files with 8 additions and 6 deletions

View File

@ -659,16 +659,19 @@ export interface TView {
* Array of ngOnInit, ngOnChanges and ngDoCheck hooks that should be executed for this view in * Array of ngOnInit, ngOnChanges and ngDoCheck hooks that should be executed for this view in
* creation mode. * creation mode.
* *
* Even indices: Directive index * This array has a flat structure and contains TNode indices, directive indices (where an
* Odd indices: Hook function * instance can be found in `LView`) and hook functions. TNode index is followed by the directive
* index and a hook function. If there are multiple hooks for a given TNode, the TNode index is
* not repeated and the next lifecycle hook information is stored right after the previous hook
* function. This is done so that at runtime the system can efficiently iterate over all of the
* functions to invoke without having to make any decisions/lookups.
*/ */
preOrderHooks: HookData|null; preOrderHooks: HookData|null;
/** /**
* Array of ngOnChanges and ngDoCheck hooks that should be executed for this view in update mode. * Array of ngOnChanges and ngDoCheck hooks that should be executed for this view in update mode.
* *
* Even indices: Directive index * This array has the same structure as the `preOrderHooks` one.
* Odd indices: Hook function
*/ */
preOrderCheckHooks: HookData|null; preOrderCheckHooks: HookData|null;
@ -759,8 +762,7 @@ export interface TView {
/** /**
* An array of indices pointing to directives with content queries alongside with the * An array of indices pointing to directives with content queries alongside with the
* corresponding * corresponding query index. Each entry in this array is a tuple of:
* query index. Each entry in this array is a tuple of:
* - index of the first content query index declared by a given directive; * - index of the first content query index declared by a given directive;
* - index of a directive. * - index of a directive.
* *