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

Recursive State parent is not possible

Open amitgaur208 opened this issue 9 years ago • 0 comments

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.

amitgaur208 avatar Aug 26 '16 08:08 amitgaur208