docs/vendor.js
function getOrCreateTemplateRef(di) {
    if (!di.templateRef) {
        ngDevMode && assertNodeType(di.node, 0 /* Container */);
        var hostNode = di.node;
        var hostTNode = hostNode.tNode;
        ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
        di.templateRef = new TemplateRef$1(getOrCreateElementRef(di), hostTNode.tViews, getRenderer(), hostNode.data[QUERIES]);
    }
    return di.templateRef;
}
function getOrCreateTemplateRef(di) {
    if (!di.templateRef) {
        ngDevMode && assertNodeType(di.node, 0 /* Container */);
        var hostNode = di.node;
        var hostTNode = hostNode.tNode;
        ngDevMode && assertDefined(hostTNode.tViews, 'TView must be allocated');
        di.templateRef = new TemplateRef$1(getOrCreateElementRef(di), hostTNode.tViews, getRenderer(), hostNode.data[QUERIES]);
    }
    return di.templateRef;
}
function getOrCreateTemplateRef ( di ) { if ( ! di . templateRef ) { ngDevMode && assertNodeType ( di . node , 0 /* Container */ ) ; var hostNode = di . node ; var hostTNode = hostNode . tNode ; ngDevMode && assertDefined ( hostTNode . tViews , 'TView must be allocated' ) ; di . templateRef = new TemplateRef$1 ( getOrCreateElementRef ( di ) , hostTNode . tViews , getRenderer ( ) , hostNode . data [ QUERIES ] ) ; } return di . templateRef ; }
Creates a TemplateRef and stores it on the injector. Or, if the TemplateRef already
exists, retrieves the existing TemplateRef.

@param di The node injector where we should store a created TemplateRef
@returns The TemplateRef instance to use
Creates a TemplateRef and stores it on the injector . Or if the TemplateRef already exists retrieves the existing TemplateRef .