Last active
June 5, 2020 20:00
-
-
Save llaughlin/cab4c7548d2c80791b53886feda4f000 to your computer and use it in GitHub Desktop.
dotnet-script-example
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 the 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">Say 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": [ | |
"font-awesome" | |
] | |
} |
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
new Vue({ | |
el: "#app", | |
data: { | |
header: "Hi, I'm GistPad! 👋" | |
}, | |
methods: { | |
sayHi() { | |
alert("Hi!"); | |
} | |
} | |
}); |
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(189, 238, 255); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment