Last active
January 23, 2020 19:33
-
-
Save chrisdias/84b7978c397975a51ab416139754c22d to your computer and use it in GitHub Desktop.
Vue.js w/TypeScript
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
<div id="app"> | |
<h1>{{ header }}</h1> | |
<p>Feel free to edit theeeee HTML, JavaScript and CSS in this playground. The preview will update in real-time, so that | |
you can visually explore your ideas.</p> | |
<button @click="sayHi">Saysssssss Hi! <span class="fa fa-heart" /></button> | |
</div> |
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
{ | |
"scripts": [ | |
"vue" | |
], | |
"styles": [] | |
} |
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
const header: string = "Hi, I'm GistPad 👋"; | |
new Vue({ | |
el: "#app", | |
data: { | |
header | |
}, | |
methods: { | |
sayHi() { | |
alert("Hi wow!!!!!!"); | |
} | |
} | |
}); |
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
body { | |
background-color: rgb(255, 170, 204); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment