Skip to content

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

Open

Description

@princeofforest

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

Activity

  1. abhipanda commented on Jun 7, 2017

    @abhipanda

    This error comes when you don't have

     ncyBreadcrumb: {
                      
                    }

    in any of your parent states.

  2. learnangular2 commented on Jun 29, 2017

    @learnangular2

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

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

        	});
     }])
    
  3. learnangular2 commented on Jun 29, 2017

    @learnangular2

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions