I have a condition brand. On the template for this condition, I have several breadcrumbs. When I go into a nested state brand.collections, for example, I need to update the breadcrumbs in the state brand.
How can i do this?
.state('brand', {
url: '/brands/:brandId/:brandName',
templateUrl: 'js/modules/brands/partials/brand.html',
controller: 'BrandController',
})
.state('brand.home', {
url: '/home',
templateUrl: 'js/modules/brands/partials/brand.home.html',
controller: 'BrandController'
})
.state('brand.collections', {
url: '/collections',
template: 'Some collections',
controller: 'CollectionsController'
})
source
share