diff --git a/src/vue-2-breadcrumbs.js b/src/vue-2-breadcrumbs.js index 0b5253e..4955393 100644 --- a/src/vue-2-breadcrumbs.js +++ b/src/vue-2-breadcrumbs.js @@ -9,10 +9,15 @@ export default { }); Vue.component('breadcrumbs', { + methods: { + getBreadcrumb: function getBreadcrumb(bc) { + return typeof bc === 'function' ? bc() : bc + }, + }, template: ` `