npm.io
1.0.1 • Published 4 years ago

@spices/ginger-head

Licence
MIT
Version
1.0.1
Deps
0
Size
7 kB
Vulns
0
Weekly
0

Ginger Head Plugin

Allows the alteration of the HTML header directly from the ginger views. e.g. Change the title of the document based on dynamically loaded data

Setup

  1. Install the plugin
yarn add @spices/ginger-head
  1. Declare the plugin
import { GingerHeadPlugin } from '@spices/ginger-head'

let opts = {
  key: 'ABC'
}

app.use(VueGinger, {
  plugins: [{ optins: opts, plugin: GingerHeadPlugin }]
})

Configuration

Declare head from the view

Trigger an update from a view

Keywords