Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read property 'ncyBreadcrumb' of null #177

Open
princeofforest opened this issue Mar 20, 2017 · 3 comments
Open

TypeError: Cannot read property 'ncyBreadcrumb' of null #177

princeofforest opened this issue Mar 20, 2017 · 3 comments

Comments

@princeofforest
Copy link

princeofforest commented Mar 20, 2017

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

@abhipanda
Copy link

abhipanda commented Jun 7, 2017

This error comes when you don't have

 ncyBreadcrumb: {
                  
                }

in any of your parent states.

@learnangular2
Copy link

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

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

    	});
 }])

@learnangular2
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants