docs/vendor.js
function hostElement(tag, rNode, def, sanitizer) {
    resetApplicationState();
    var node = createLNode(0, 3 /* Element */, rNode, null, null, createLViewData(renderer, getOrCreateTView(def.template, def.directiveDefs, def.pipeDefs, def.viewQuery), null, def.onPush ? 4 /* Dirty */ : 2 /* CheckAlways */, sanitizer));
    if (firstTemplatePass) {
        node.tNode.flags = 4096 /* isComponent */;
        if (def.diPublic)
            def.diPublic(def);
        tView.directives = [def];
    }
    return node;
}
function hostElement(tag, rNode, def, sanitizer) {
    resetApplicationState();
    var node = createLNode(0, 3 /* Element */, rNode, null, null, createLViewData(renderer, getOrCreateTView(def.template, def.directiveDefs, def.pipeDefs, def.viewQuery), null, def.onPush ? 4 /* Dirty */ : 2 /* CheckAlways */, sanitizer));
    if (firstTemplatePass) {
        node.tNode.flags = 4096 /* isComponent */;
        if (def.diPublic)
            def.diPublic(def);
        tView.directives = [def];
    }
    return node;
}
function hostElement ( tag , rNode , def , sanitizer ) { resetApplicationState ( ) ; var node = createLNode ( 0 , 3 /* Element */ , rNode , null , null , createLViewData ( renderer , getOrCreateTView ( def . template , def . directiveDefs , def . pipeDefs , def . viewQuery ) , null , def . onPush ? 4 /* Dirty */ : 2 /* CheckAlways */ , sanitizer ) ) ; if ( firstTemplatePass ) { node . tNode . flags = 4096 /* isComponent */ ; if ( def . diPublic ) def . diPublic ( def ) ; tView . directives = [ def ] ; } return node ; }
Creates the host LNode.

@param rNode Render host element.
@param def ComponentDef

@returns LElementNode created
Creates the host LNode .