Scrum / vue-2-breadcrumbs

Vue breadcrumbs
MIT License
98 stars 20 forks source link

Cannot use custom template when using nuxt #137

Open naufalfarras opened 2 years ago

naufalfarras commented 2 years ago

hi thank you for the library, i found maybe a bug that in nuxt 2 i cant update the template with the object parameter when registering the plugins,

here i showed you if i registered without defining a template, Vue.use(VueBreadcrumbs) it is working fine,

Screen Shot 2022-03-21 at 12 21 54

but if i add this code

const template = {
   template: '<div class="breadcrumbs">Custom Navbar</div>',
}

Vue.use(VueBreadcrumbs, template)
Screen Shot 2022-03-21 at 12 22 19

notice above image there is function inside a comments that breadcrumb should be located, may i know if i am doing something wrong or this is a bug? thank you

Scrum commented 2 years ago

Hello, Please provide an example https://github.com/Scrum/vue-2-breadcrumbs#options

Let me know anyway if it didn't help you.

If possible, attach an example and I will definitely understand the problem