Created
August 10, 2020 14:38
-
-
Save PKTseng/9ae0216303667b92b40547d1875555c3 to your computer and use it in GitHub Desktop.
textarea-pre
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"> | |
<textarea v-model="message"></textarea> | |
<!-- <h1>{{message}}</h1> --> | |
<pre>{{message}}</pre> | |
</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
new Vue({ | |
el:'#app', | |
data:{ | |
message: '', | |
}, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment