screen_rotation
Copied to Clipboard
<html> <head> <script type="importmap"> { "imports": { "vue": "https://unpkg.com/vue@3/dist/vue.esm-browser.js" } } </script> </head> <body> <div id="app"> <h3>Vue Js Character Count</h3> <textarea type="text" v-model="inputText" @input="updateCharCount"></textarea> <p v-if="inputText">Character count: {{ charCount }}</p> </div> <script type="module"> import { createApp } from "vue"; createApp({ data() { return { inputText: '', charCount: 0 } }, methods: { updateCharCount() { this.charCount = this.inputText.length } } }).mount("#app"); </script> </body> </html>