Add $nuxt.error()

This commit is contained in:
Sébastien Chopin 2016-12-04 19:15:50 +01:00
parent 87789b8748
commit 509c14a7ac

View File

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