Skip to content

Instantly share code, notes, and snippets.

@mercs600
Last active March 29, 2020 15:19
Show Gist options
  • Save mercs600/653c4487e1f98c2dfca8311c5e6fdd53 to your computer and use it in GitHub Desktop.
Save mercs600/653c4487e1f98c2dfca8311c5e6fdd53 to your computer and use it in GitHub Desktop.
nuxt-ssr-exercise-4-fetch
<template>
<div>
<h1> {{ title }} </h1>
<p> Just check HTML source or inspect window.__NUXT__ </p>
</div>
</template>
<script>
export default {
data () {
return {
title: null
}
},
fetch () {
this.title = 'fetch method'
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment