release/angular-breadcrumb.js
function(chain, stateRef) {
            var conf,
                parentParams,
                ref = parseStateRef(stateRef),
                force = false,
                skip = false;

            for(var i=0, l=chain.length; i<l; i+=1) {
                if (chain[i].name === ref.state) {
                    return;
                }
            }

            conf = $state.get(ref.state);
            // Get breadcrumb options
            if(conf.ncyBreadcrumb) {
                if(conf.ncyBreadcrumb.force){ force = true; }
                if(conf.ncyBreadcrumb.skip){ skip = true; }
            }
            if((!conf.abstract || $$options.includeAbstract || force) && !skip) {
                if(ref.paramExpr) {
                    parentParams = $lastViewScope.$eval(ref.paramExpr);
                }

                conf.ncyBreadcrumbLink = $state.href(ref.state, parentParams || $stateParams || {});
                conf.ncyBreadcrumbStateRef = stateRef;
                chain.unshift(conf);
            }
        }
function(chain, stateRef) {
            var conf,
                parentParams,
                ref = parseStateRef(stateRef),
                force = false,
                skip = false;

            for(var i=0, l=chain.length; i<l; i+=1) {
                if (chain[i].name === ref.state) {
                    return;
                }
            }

            conf = $state.get(ref.state);
            // Get breadcrumb options
            if(conf.ncyBreadcrumb) {
                if(conf.ncyBreadcrumb.force){ force = true; }
                if(conf.ncyBreadcrumb.skip){ skip = true; }
            }
            if((!conf.abstract || $$options.includeAbstract || force) && !skip) {
                if(ref.paramExpr) {
                    parentParams = $lastViewScope.$eval(ref.paramExpr);
                }

                conf.ncyBreadcrumbLink = $state.href(ref.state, parentParams || $stateParams || {});
                conf.ncyBreadcrumbStateRef = stateRef;
                chain.unshift(conf);
            }
        }
function ( chain , stateRef ) { var conf , parentParams , ref = parseStateRef ( stateRef ) , force = false , skip = false ; for ( var i = 0 , l = chain . length ; i < l ; i += 1 ) { if ( chain [ i ] . name === ref . state ) { return ; } } conf = $state . get ( ref . state ) ; // Get breadcrumb options if ( conf . ncyBreadcrumb ) { if ( conf . ncyBreadcrumb . force ) { force = true ; } if ( conf . ncyBreadcrumb . skip ) { skip = true ; } } if ( ( ! conf . abstract || $$options . includeAbstract || force ) && ! skip ) { if ( ref . paramExpr ) { parentParams = $lastViewScope . $eval ( ref . paramExpr ) ; } conf . ncyBreadcrumbLink = $state . href ( ref . state , parentParams || $stateParams || { } ) ; conf . ncyBreadcrumbStateRef = stateRef ; chain . unshift ( conf ) ; } }
Add the state in the chain if not already in and if not abstract
Add the state in the chain if not already in and if not abstract