angular-breadcrumb icon indicating copy to clipboard operation
angular-breadcrumb copied to clipboard

TypeError: Cannot read property 'ncyBreadcrumb' of null

Open princeofforest opened this issue 7 years ago • 3 comments

When i try 3 level, the ncy broke down

                ncyBreadcrumb: {
                    label: 'Create Reservation',
                    parent:'admin.level1.level2'
                },

<ol class="breadcrumb">
    <li ng-repeat="step in steps" ng-class="{active: $last}" ng-switch="$last || !!step.abstract">
        <a ng-switch-when="false" href="{{step.ncyBreadcrumbLink}}">{{step.ncyBreadcrumbLabel | translate}}</a>
        <span ng-switch-when="true">{{step.ncyBreadcrumbLabel | translate}}</span>
    </li>
</ol>

angular-breadcrumb - v0.4.0

please advise! thank you very much

princeofforest avatar Mar 20 '17 03:03 princeofforest

This error comes when you don't have

 ncyBreadcrumb: {
                  
                }

in any of your parent states.

abhipanda avatar Jun 07 '17 21:06 abhipanda

I also got this error and it was because of a missing configuration -

.config(['$breadcrumbProvider',function($breadcrumbProvider){ $breadcrumbProvider.setOptions({ prefixStateName:'home'

    	});
 }])

learnangular2 avatar Jun 29 '17 15:06 learnangular2

This may not be applicable to the scenario explained above, but in case someone else run in to the same issue.

learnangular2 avatar Jun 29 '17 15:06 learnangular2