Add $nuxt.error()

This commit is contained in:
Sébastien Chopin 2016-12-04 19:15:50 +01:00
parent 87789b8748
commit 509c14a7ac
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,8 @@ export default {
if (typeof window !== 'undefined') {
window.$nuxt = this
}
// Add $nuxt.error()
this.error = this.$root.error
},
<% if (loading) { %>
mounted () {