From d46a9615095d78b3f9e0d28f7d3fcbdf44063eed Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Wed, 1 Aug 2018 15:32:18 -0700 Subject: [PATCH] docs(ivy): API doc tweaks (#25258) PR Close #25258 --- packages/core/src/render3/interfaces/node.ts | 7 +++---- packages/core/src/render3/interfaces/view.ts | 6 ++++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/core/src/render3/interfaces/node.ts b/packages/core/src/render3/interfaces/node.ts index 817c970d13..2a67e44baa 100644 --- a/packages/core/src/render3/interfaces/node.ts +++ b/packages/core/src/render3/interfaces/node.ts @@ -70,11 +70,10 @@ export interface LNode { readonly native: RComment|RElement|RText|null; /** - * If regular LElementNode, then `data` will be null. - * If LElementNode with component, then `data` contains LView. - * If LViewNode, then `data` contains the LView. + * If regular LElementNode, LTextNode, and LProjectionNode then `data` will be null. + * If LElementNode with component, then `data` contains LViewData. + * If LViewNode, then `data` contains the LViewData. * If LContainerNode, then `data` contains LContainer. - * If LProjectionNode, then `data` contains LProjection. */ readonly data: LViewData|LContainer|null; diff --git a/packages/core/src/render3/interfaces/view.ts b/packages/core/src/render3/interfaces/view.ts index 68b5ecb193..5f3d62fc30 100644 --- a/packages/core/src/render3/interfaces/view.ts +++ b/packages/core/src/render3/interfaces/view.ts @@ -134,9 +134,11 @@ export interface LViewData extends Array { [CLEANUP]: any[]|null; /** - * - For embedded views, the context with which to render the template. + * - For dynamic views, this is the context with which to render the template (e.g. + * `NgForContext`), or `{}` if not defined explicitly. * - For root view of the root component the context contains change detection data. - * - `null` otherwise. + * - For non-root components, the context is the component instance, + * - For inline views, the context is null. */ [CONTEXT]: {}|RootContext|null;