Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vue.component('accordion-header', {
- inject: ['accordionItemState'],
- template: `
- <h2 class="accordion-header">
- <button @click="accordionItemState.expanded = !accordionItemState.expanded">
- {{ accordionItemState.expanded ? '▼' : '►' }}
- <slot></slot>
- </button>
- </h2>
- `
- })
Add Comment
Please, Sign In to add comment