2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-22 04:20:33 +03:00

fix: use single object prop on

feat: provide hasMetaInfo export for other libraries to check if metaInfo has been defined

chore: deprecate _hasMetaInfo
This commit is contained in:
pimlie
2019-02-23 13:49:37 +01:00
parent 5935cf32cc
commit 9c80dab7b2
9 changed files with 83 additions and 20 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ import createMixin from './shared/mixin'
import setOptions from './shared/options'
import { isUndefined } from './shared/typeof'
import $meta from './client/$meta'
export { hasMetaInfo } from './shared/hasMetaInfo'
/**
* Plugin install function.
@@ -13,7 +14,7 @@ function VueMeta(Vue, options = {}) {
Vue.prototype.$meta = $meta(options)
Vue.mixin(createMixin(options))
Vue.mixin(createMixin(Vue, options))
}
VueMeta.version = version