@@ -36,7 +36,7 @@ import {NO_CHANGE} from '../tokens';
3636import { isAnimationProp } from '../util/attrs_utils' ;
3737import { INTERPOLATION_DELIMITER , renderStringify , stringifyForError } from '../util/misc_utils' ;
3838import { getLViewParent } from '../util/view_traversal_utils' ;
39- import { getComponentViewByIndex , getNativeByIndex , getNativeByTNode , getTNode , isCreationMode , readPatchedLView , resetPreOrderHookFlags , unwrapRNode , viewAttachedToChangeDetector } from '../util/view_utils' ;
39+ import { getComponentLViewByIndex , getNativeByIndex , getNativeByTNode , getTNode , isCreationMode , readPatchedLView , resetPreOrderHookFlags , unwrapRNode , viewAttachedToChangeDetector } from '../util/view_utils' ;
4040
4141import { selectIndexInternal } from './advance' ;
4242import { LCleanup , LViewBlueprint , MatchesArray , TCleanup , TNodeConstructor , TNodeInitialInputs , TNodeLocalNames , TViewComponents , TViewConstructor , attachLContainerDebug , attachLViewDebug , cloneToLView , cloneToTViewData } from './lview_debug' ;
@@ -936,7 +936,7 @@ export function elementPropertyInternal<T>(
936936/** If node is an OnPush component, marks its LView dirty. */
937937function markDirtyIfOnPush ( lView : LView , viewIndex : number ) : void {
938938 ngDevMode && assertLView ( lView ) ;
939- const childComponentLView = getComponentViewByIndex ( viewIndex , lView ) ;
939+ const childComponentLView = getComponentLViewByIndex ( viewIndex , lView ) ;
940940 if ( ! ( childComponentLView [ FLAGS ] & LViewFlags . CheckAlways ) ) {
941941 childComponentLView [ FLAGS ] |= LViewFlags . Dirty ;
942942 }
@@ -1185,7 +1185,7 @@ function postProcessDirective<T>(
11851185 }
11861186
11871187 if ( isComponentDef ( def ) ) {
1188- const componentView = getComponentViewByIndex ( hostTNode . index , lView ) ;
1188+ const componentView = getComponentLViewByIndex ( hostTNode . index , lView ) ;
11891189 componentView [ CONTEXT ] = directive ;
11901190 }
11911191}
@@ -1502,7 +1502,7 @@ function refreshDynamicEmbeddedViews(lView: LView) {
15021502 */
15031503function refreshComponent ( hostLView : LView , componentHostIdx : number ) : void {
15041504 ngDevMode && assertEqual ( isCreationMode ( hostLView ) , false , 'Should be run in update mode' ) ;
1505- const componentView = getComponentViewByIndex ( componentHostIdx , hostLView ) ;
1505+ const componentView = getComponentLViewByIndex ( componentHostIdx , hostLView ) ;
15061506 // Only attached components that are CheckAlways or OnPush and dirty should be refreshed
15071507 if ( viewAttachedToChangeDetector ( componentView ) &&
15081508 componentView [ FLAGS ] & ( LViewFlags . CheckAlways | LViewFlags . Dirty ) ) {
@@ -1513,7 +1513,7 @@ function refreshComponent(hostLView: LView, componentHostIdx: number): void {
15131513
15141514function renderComponent ( hostLView : LView , componentHostIdx : number ) {
15151515 ngDevMode && assertEqual ( isCreationMode ( hostLView ) , true , 'Should be run in creation mode' ) ;
1516- const componentView = getComponentViewByIndex ( componentHostIdx , hostLView ) ;
1516+ const componentView = getComponentLViewByIndex ( componentHostIdx , hostLView ) ;
15171517 syncViewWithBlueprint ( componentView ) ;
15181518 renderView ( componentView , componentView [ TVIEW ] , componentView [ CONTEXT ] ) ;
15191519}
0 commit comments