Skip to content

Commit 46270b8

Browse files
1istenpi0
andauthored
feat: add $nuxt.context (#117)
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
1 parent 2a39757 commit 46270b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export default {
4242
}
4343
// Add $nuxt.error()
4444
this.error = this.nuxt.error
45+
// Add $nuxt.context
46+
this.context = this.$options.context
4547
},
4648
methods: {
4749
setLayout (layout) {

0 commit comments

Comments
 (0)