Skip to content

Conversation

@jessepinho
Copy link

For my use case, I need to attach dropdowns to each breadcrumb item that link to sibling resources. To do this, I want to pass arbitrary data along with each breadcrumb's name and path, which I can then use in the template. I've simply added functionality to look for a breadCrumbData key on each controller and pass it along to the template.

@simonexmachina simonexmachina mentioned this pull request Jan 11, 2015
@davekaro
Copy link

davekaro commented Feb 3, 2015

Anything holding this up? Would be useful for using icons in breadcrumb

@davekaro
Copy link

davekaro commented Feb 3, 2015

Actually, there is nothing stopping me right now from setting breadCrumb: { name: 'name', icon: 'whatever' } and referring to those in the template. Thanks!

@jessepinho
Copy link
Author

Good point, thanks! I may start using that in my own code in the meantime.

For anyone else coming across this, note that you would have to use a custom breadcrumb template to use @davekaro's approach, since the default template treats the breadCrumb property as a string.

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

Successfully merging this pull request may close these issues.

2 participants