Last active
May 28, 2023 15:01
-
-
Save JeffreyWay/0d7d2cd0086fcc9f5569fbe44afab5cc to your computer and use it in GitHub Desktop.
Learn Vue 3: Step By Step, Episode 1 - https://laracasts.com/series/learn-vue-3-step-by-step/episodes/1
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Episode 1: The Absolute Basics</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<p> | |
<input type="text" v-model="greeting"> | |
</p> | |
<p> | |
{{ greeting }} ({{ greeting.length }}) | |
</p> | |
</div> | |
<script> | |
Vue.createApp({ | |
data() { | |
return { | |
greeting: 'What is up' | |
}; | |
}, | |
mounted() { | |
setTimeout(() => { | |
this.greeting = 'Changed'; | |
}, 3000); | |
} | |
}).mount('#app'); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment