release/angular-breadcrumb.js
function(stateRef) {
            var ref = parseStateRef(stateRef),
                conf = $state.get(ref.state);

            if(conf.ncyBreadcrumb && conf.ncyBreadcrumb.parent) {
                // Handle the "parent" property of the breadcrumb, override the parent/child relation of the state
                var isFunction = typeof conf.ncyBreadcrumb.parent === 'function';
                var parentStateRef = isFunction ? conf.ncyBreadcrumb.parent($lastViewScope) : conf.ncyBreadcrumb.parent;
                if(parentStateRef) {
                    return parentStateRef;
                }
            }

            return $$parentState(conf);
        }
function(stateRef) {
            var ref = parseStateRef(stateRef),
                conf = $state.get(ref.state);

            if(conf.ncyBreadcrumb && conf.ncyBreadcrumb.parent) {
                // Handle the "parent" property of the breadcrumb, override the parent/child relation of the state
                var isFunction = typeof conf.ncyBreadcrumb.parent === 'function';
                var parentStateRef = isFunction ? conf.ncyBreadcrumb.parent($lastViewScope) : conf.ncyBreadcrumb.parent;
                if(parentStateRef) {
                    return parentStateRef;
                }
            }

            return $$parentState(conf);
        }
function ( stateRef ) { var ref = parseStateRef ( stateRef ) , conf = $state . get ( ref . state ) ; if ( conf . ncyBreadcrumb && conf . ncyBreadcrumb . parent ) { // Handle the "parent" property of the breadcrumb, override the parent/child relation of the state var isFunction = typeof conf . ncyBreadcrumb . parent === 'function' ; var parentStateRef = isFunction ? conf . ncyBreadcrumb . parent ( $lastViewScope ) : conf . ncyBreadcrumb . parent ; if ( parentStateRef ) { return parentStateRef ; } } return $$parentState ( conf ) ; }
Get the state for the parent step in the breadcrumb
Get the state for the parent step in the breadcrumb