docs/vendor.js
function getOrCreateContainerRef(di) {
    if (!di.viewContainerRef) {
        var vcRefHost = di.node;
        ngDevMode && assertNodeOfPossibleTypes(vcRefHost, 0 /* Container */, 3 /* Element */);
        var hostParent = getParentLNode(vcRefHost);
        var lContainer = createLContainer(hostParent, vcRefHost.view, true);
        var comment = vcRefHost.view[RENDERER].createComment(ngDevMode ? 'container' : '');
        var lContainerNode = createLNodeObject(0 /* Container */, vcRefHost.view, hostParent, comment, lContainer, null);
        appendChild(hostParent, comment, vcRefHost.view);
        if (vcRefHost.queries) {
            lContainerNode.queries = vcRefHost.queries.container();
        }
        var hostTNode = vcRefHost.tNode;
        if (!hostTNode.dynamicContainerNode) {
            hostTNode.dynamicContainerNode =
                createTNode(0 /* Container */, -1, null, null, hostTNode, null);
        }
        lContainerNode.tNode = hostTNode.dynamicContainerNode;
        vcRefHost.dynamicLContainerNode = lContainerNode;
        addToViewTree(vcRefHost.view, hostTNode.index, lContainer);
        di.viewContainerRef = new ViewContainerRef$1(lContainerNode);
    }
    return di.viewContainerRef;
}
function getOrCreateContainerRef(di) {
    if (!di.viewContainerRef) {
        var vcRefHost = di.node;
        ngDevMode && assertNodeOfPossibleTypes(vcRefHost, 0 /* Container */, 3 /* Element */);
        var hostParent = getParentLNode(vcRefHost);
        var lContainer = createLContainer(hostParent, vcRefHost.view, true);
        var comment = vcRefHost.view[RENDERER].createComment(ngDevMode ? 'container' : '');
        var lContainerNode = createLNodeObject(0 /* Container */, vcRefHost.view, hostParent, comment, lContainer, null);
        appendChild(hostParent, comment, vcRefHost.view);
        if (vcRefHost.queries) {
            lContainerNode.queries = vcRefHost.queries.container();
        }
        var hostTNode = vcRefHost.tNode;
        if (!hostTNode.dynamicContainerNode) {
            hostTNode.dynamicContainerNode =
                createTNode(0 /* Container */, -1, null, null, hostTNode, null);
        }
        lContainerNode.tNode = hostTNode.dynamicContainerNode;
        vcRefHost.dynamicLContainerNode = lContainerNode;
        addToViewTree(vcRefHost.view, hostTNode.index, lContainer);
        di.viewContainerRef = new ViewContainerRef$1(lContainerNode);
    }
    return di.viewContainerRef;
}
function getOrCreateContainerRef ( di ) { if ( ! di . viewContainerRef ) { var vcRefHost = di . node ; ngDevMode && assertNodeOfPossibleTypes ( vcRefHost , 0 /* Container */ , 3 /* Element */ ) ; var hostParent = getParentLNode ( vcRefHost ) ; var lContainer = createLContainer ( hostParent , vcRefHost . view , true ) ; var comment = vcRefHost . view [ RENDERER ] . createComment ( ngDevMode ? 'container' : '' ) ; var lContainerNode = createLNodeObject ( 0 /* Container */ , vcRefHost . view , hostParent , comment , lContainer , null ) ; appendChild ( hostParent , comment , vcRefHost . view ) ; if ( vcRefHost . queries ) { lContainerNode . queries = vcRefHost . queries . container ( ) ; } var hostTNode = vcRefHost . tNode ; if ( ! hostTNode . dynamicContainerNode ) { hostTNode . dynamicContainerNode = createTNode ( 0 /* Container */ , - 1 , null , null , hostTNode , null ) ; } lContainerNode . tNode = hostTNode . dynamicContainerNode ; vcRefHost . dynamicLContainerNode = lContainerNode ; addToViewTree ( vcRefHost . view , hostTNode . index , lContainer ) ; di . viewContainerRef = new ViewContainerRef$1 ( lContainerNode ) ; } return di . viewContainerRef ; }
Creates a ViewContainerRef and stores it on the injector. Or, if the ViewContainerRef
already exists, retrieves the existing ViewContainerRef.

@returns The ViewContainerRef instance to use
Creates a ViewContainerRef and stores it on the injector . Or if the ViewContainerRef already exists retrieves the existing ViewContainerRef .