docs/vendor.js
function getRootView(component) {
    ngDevMode && assertDefined(component, 'component');
    var lElementNode = _getComponentHostLElementNode(component);
    var lViewData = lElementNode.view;
    while (lViewData[PARENT]) {
        lViewData = lViewData[PARENT];
    }
    return lViewData;
}
function getRootView(component) {
    ngDevMode && assertDefined(component, 'component');
    var lElementNode = _getComponentHostLElementNode(component);
    var lViewData = lElementNode.view;
    while (lViewData[PARENT]) {
        lViewData = lViewData[PARENT];
    }
    return lViewData;
}
function getRootView ( component ) { ngDevMode && assertDefined ( component , 'component' ) ; var lElementNode = _getComponentHostLElementNode ( component ) ; var lViewData = lElementNode . view ; while ( lViewData [ PARENT ] ) { lViewData = lViewData [ PARENT ] ; } return lViewData ; }
Retrieve the root view from any component by walking the parent `LViewData` until
reaching the root `LViewData`.

@param component any component
Retrieve the root view from any component by walking the parent LViewData until reaching the root LViewData .