docs/vendor.js
function getRootContext(component) {
    var rootContext = getRootView(component)[CONTEXT];
    ngDevMode && assertDefined(rootContext, 'rootContext');
    return rootContext;
}
function getRootContext(component) {
    var rootContext = getRootView(component)[CONTEXT];
    ngDevMode && assertDefined(rootContext, 'rootContext');
    return rootContext;
}
function getRootContext ( component ) { var rootContext = getRootView ( component ) [ CONTEXT ] ; ngDevMode && assertDefined ( rootContext , 'rootContext' ) ; return rootContext ; }
Retrieve the root context for any component by walking the parent `LView` until
reaching the root `LView`.

@param component any component
Retrieve the root context for any component by walking the parent LView until reaching the root LView .