docs/vendor.js
function inheritedParamsDataResolve(route, paramsInheritanceStrategy) {
    if (paramsInheritanceStrategy === void 0) { paramsInheritanceStrategy = 'emptyOnly'; }
    var pathFromRoot = route.pathFromRoot;
    var inheritingStartingFrom = 0;
    if (paramsInheritanceStrategy !== 'always') {
        inheritingStartingFrom = pathFromRoot.length - 1;
        while (inheritingStartingFrom >= 1) {
            var current = pathFromRoot[inheritingStartingFrom];
            var parent_1 = pathFromRoot[inheritingStartingFrom - 1];
            // current route is an empty path => inherits its parent's params and data
            if (current.routeConfig && current.routeConfig.path === '') {
                inheritingStartingFrom--;
                // parent is componentless => current route should inherit its params and data
            }
            else if (!parent_1.component) {
                inheritingStartingFrom--;
            }
            else {
                break;
            }
        }
    }
    return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));
}
function inheritedParamsDataResolve(route, paramsInheritanceStrategy) {
    if (paramsInheritanceStrategy === void 0) { paramsInheritanceStrategy = 'emptyOnly'; }
    var pathFromRoot = route.pathFromRoot;
    var inheritingStartingFrom = 0;
    if (paramsInheritanceStrategy !== 'always') {
        inheritingStartingFrom = pathFromRoot.length - 1;
        while (inheritingStartingFrom >= 1) {
            var current = pathFromRoot[inheritingStartingFrom];
            var parent_1 = pathFromRoot[inheritingStartingFrom - 1];
            // current route is an empty path => inherits its parent's params and data
            if (current.routeConfig && current.routeConfig.path === '') {
                inheritingStartingFrom--;
                // parent is componentless => current route should inherit its params and data
            }
            else if (!parent_1.component) {
                inheritingStartingFrom--;
            }
            else {
                break;
            }
        }
    }
    return flattenInherited(pathFromRoot.slice(inheritingStartingFrom));
}
function inheritedParamsDataResolve ( route , paramsInheritanceStrategy ) { if ( paramsInheritanceStrategy === void 0 ) { paramsInheritanceStrategy = 'emptyOnly' ; } var pathFromRoot = route . pathFromRoot ; var inheritingStartingFrom = 0 ; if ( paramsInheritanceStrategy !== 'always' ) { inheritingStartingFrom = pathFromRoot . length - 1 ; while ( inheritingStartingFrom >= 1 ) { var current = pathFromRoot [ inheritingStartingFrom ] ; var parent_1 = pathFromRoot [ inheritingStartingFrom - 1 ] ; // current route is an empty path => inherits its parent's params and data if ( current . routeConfig && current . routeConfig . path === '' ) { inheritingStartingFrom -- ; // parent is componentless => current route should inherit its params and data } else if ( ! parent_1 . component ) { inheritingStartingFrom -- ; } else { break ; } } } return flattenInherited ( pathFromRoot . slice ( inheritingStartingFrom ) ) ; }
Returns the inherited params, data, and resolve for a given route.
By default, this only inherits values up to the nearest path-less or component-less route.
@internal
Returns the inherited params data and resolve for a given route . By default this only inherits values up to the nearest path - less or component - less route .