/breadcrumb

breadcrumb directive component for vue

Primary LanguageJavaScript

Breadcrumb

breadcrumb directive component for vue 2.x

Installation

npm i @litt1e-p/breadcrumb --save

Usage

just add a directive v-breadcrumb in the html element after adding router meta with title value or router's name by default

Example:

  • use with only one vue directive
<div v-breadcrumb></div>
  • use with html element attributes
<div v-breadcrumb="{separator: '>', paths: [{name: 'App', to: '/'}, {name: 'Module'}, {name: 'Index'},]}"></div>

Screenshot

License

MIT