mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-14 20:32:24 +03:00
12 lines
294 B
JavaScript
12 lines
294 B
JavaScript
import inject from './inject'
|
|
|
|
/**
|
|
* Returns an injector for server-side rendering.
|
|
* @this {Object} - the Vue instance (a root component)
|
|
* @return {Object} - injector
|
|
*/
|
|
export default function $meta () {
|
|
// bind inject method to this component
|
|
return { inject: inject.bind(this) }
|
|
}
|