Last active
March 29, 2020 15:19
-
-
Save mercs600/653c4487e1f98c2dfca8311c5e6fdd53 to your computer and use it in GitHub Desktop.
nuxt-ssr-exercise-4-fetch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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