1.0.1 • Published 3 years ago

@spices/ginger-head v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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