Skip to content

Commit

Permalink
Fix example (#574)
Browse files Browse the repository at this point in the history
* Fix example

* Remove addPlugin to keep it simple

Co-authored-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
  • Loading branch information
vhoyer and debs-obrien committed Aug 26, 2020
1 parent 1b48dda commit b378676
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions content/en/guides/directory-structure/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ export default {

```js{}[modules/example.js]
export default function ExampleModule (moduleOptions) {
console.log(moduleOptions.token) // '123'
console.log(this.options.exampleMsg) // 'hello'
this.addPlugin(
console.log(moduleOptions.token) // '123'
console.log(this.options.exampleMsg) // 'hello'
this.nuxt.hook('ready', async (nuxt) => {
console.log('Nuxt is ready')
})
Expand Down

0 comments on commit b378676

Please sign in to comment.