angular-breadcrumb
angular-breadcrumb copied to clipboard
Wiki addition
Hi @ncuillery, I tried to edit this wiki but I think it's not allowed for non-collaborators.
This is what I want to add just below State options
as first property:
force
Gives the ability to show specific abstract states, even if options.includeAbstract
is turned off in global configuration.
For example, this state's config:
$stateProvider.state('home', {
url: '/home',
templateUrl: 'views/home.html',
ncyBreadcrumb: {
label: 'Home'
}
});
$stateProvider.state('list', {
abstract: true,
ncyBreadcrumb: {
force: true,
label: 'List',
parent: 'home'
}
});
$stateProvider.state('list.contact', {
url: '/contact',
templateUrl: 'views/contact.html',
ncyBreadcrumb: {
label: 'Contact'
}
});
... will produce Home / List / Contact
rather than Home / Contact
.
Thanks!