-
-
Save kevinnio/8c4ffe5dc6facd380ce31bf0894f6030 to your computer and use it in GitHub Desktop.
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="alert-app" style="text-align: center"> | |
<button v-on:click="alert(message)">ALERT</button> | |
</div> | |
<script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
<script> | |
new Vue({ | |
el: '#alert-app', | |
data: { message: 'This is an alert message.' } | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment