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

Recursive State parent is not possible #162

Open
amitgaur208 opened this issue Aug 26, 2016 · 0 comments
Open

Recursive State parent is not possible #162

amitgaur208 opened this issue Aug 26, 2016 · 0 comments

Comments

@amitgaur208
Copy link

amitgaur208 commented Aug 26, 2016

I have a hierarchy of categories.
Like: Clothing > Apparel > Printed >Customized etc.
And I have created an state for category Detail like:

.state('root.categoryDetail', {
             url: '/categoryDetail/:slug',
             templateUrl: 'views/products/category-detail.html',
             controller: 'CategoryDtlCtrl',
             ncyBreadcrumb: {
                  label: '{{category.name}}',
                  parent: function ($scope) {
                       //return $scope.no_parent ? 'root.home' : 'root.categoryDetail';
                   },
              }
})

But I am not to make parent itself in ncyBreadcrumbParent.

I really want to use same state for all level categories with proper breadcrumb. Please help. If it's possible.

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

1 participant