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

getStatesChain() raise error #11

Closed
manuelmazzuola opened this issue May 12, 2014 · 1 comment
Closed

getStatesChain() raise error #11

manuelmazzuola opened this issue May 12, 2014 · 1 comment
Assignees
Labels

Comments

@manuelmazzuola
Copy link

$breadcrumb.getStatesChain() raise the error below when using ncyBreadcrumbSkip: true on the very first step

Example
      .state('admin', {
        url: '/admin',
        templateUrl: 'views/layout.html',
        data: {
          ncyBreadcrumbLabel: 'Admin',
          ncyBreadcrumbSkip: true
        }
      })
      .state('admin.dashboard', {
        url: '/dashboard',
        templateUrl: 'views/dashboard.html',
        controller: 'DashboardCtrl',
        data: {
          ncyBreadcrumbLabel: 'Dashboard'
        }
      })
TypeError: Cannot read property 'data' of null
    at $$isInherited (http://127.0.0.1:9000/bower_components/angular-breadcrumb/dist/angular-breadcrumb.js:31:49)
    at $$addStateInChain (http://127.0.0.1:9000/bower_components/angular-breadcrumb/dist/angular-breadcrumb.js:60:18)
    at Object.getStatesChain (http://127.0.0.1:9000/bower_components/angular-breadcrumb/dist/angular-breadcrumb.js:124:21)
@ncuillery
Copy link
Owner

Ok. Thanks for reporting.

@ncuillery ncuillery added the bug label May 12, 2014
@ncuillery ncuillery self-assigned this May 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants