@@ -18,14 +18,15 @@ import {assertDataInRange, assertDefined, assertEqual} from '../util/assert';
18
18
import { assertPreviousIsParent } from './assert' ;
19
19
import { getNodeInjectable , locateDirectiveOrProvider } from './di' ;
20
20
import { NG_ELEMENT_ID } from './fields' ;
21
- import { store , ɵɵload } from './instructions/all' ;
21
+ import { store } from './instructions/all' ;
22
22
import { storeCleanupWithContext } from './instructions/shared' ;
23
23
import { unusedValueExportToPlacateAjd as unused1 } from './interfaces/definition' ;
24
24
import { unusedValueExportToPlacateAjd as unused2 } from './interfaces/injector' ;
25
25
import { TContainerNode , TElementContainerNode , TElementNode , TNode , TNodeType , unusedValueExportToPlacateAjd as unused3 } from './interfaces/node' ;
26
26
import { LQueries , unusedValueExportToPlacateAjd as unused4 } from './interfaces/query' ;
27
27
import { CONTENT_QUERIES , HEADER_OFFSET , LView , QUERIES , TVIEW } from './interfaces/view' ;
28
28
import { getCurrentQueryIndex , getIsParent , getLView , isCreationMode , setCurrentQueryIndex } from './state' ;
29
+ import { loadInternal } from './util/view_utils' ;
29
30
import { createElementRef , createTemplateRef } from './view_engine_compatibility' ;
30
31
31
32
const unusedValueToPlacateAjd = unused1 + unused2 + unused3 + unused4 ;
@@ -456,7 +457,7 @@ export function ɵɵviewQuery<T>(
456
457
export function ɵɵloadViewQuery < T > ( ) : T {
457
458
const index = getCurrentQueryIndex ( ) ;
458
459
setCurrentQueryIndex ( index + 1 ) ;
459
- return ɵɵload < T > ( index - HEADER_OFFSET ) ;
460
+ return loadInternal < T > ( getLView ( ) , index - HEADER_OFFSET ) ;
460
461
}
461
462
462
463
/**
0 commit comments