Skip to content

Commit

Permalink
expose $ssrContext
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 2, 2017
1 parent 6b4f3da commit 8d7ad19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ Object.defineProperty(Vue.prototype, '$isServer', {
get: isServerRendering
})

Object.defineProperty(Vue.prototype, '$ssrContext', {
get () {
return this.$vnode.ssrContext
}
})

Vue.version = '__VERSION__'

export default Vue

0 comments on commit 8d7ad19

Please sign in to comment.