Scrum / vue-2-breadcrumbs

Vue breadcrumbs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feat]: Pass additional params into breadcrumb function

gdereese opened this issue · comments

I like that you allow specifying a function for a route's breadcrumb so that the text can be dynamically generated.

To expand on that idea, it would be great to have the current route parameters passed into the breadcrumb function so that the consumer could use those params as well.

For example, if I have a route /customer/:id, I'd like to be able to use the id route parameter to lookup the customer name so that I can display breadcrumbs like this:

Home > Customers > John Doe

I'd be happy to submit a pull request for this feature if you'd take it.

@gdereese Hi

I'd be happy to submit a pull request for this feature if you'd take it.

I will be happy with any contributions if this does not break the general ideology of the package.

Done, see pull request #41.

@gdereese Thank you very much for your contribution, it is very important for the project. #42

Please do not forget to put the star projects that you like))