Skip to content

Capitalize easy #Directives

By Lov`u`e @heappynd

Take the Challenge    简体中文

Create a custom modifier for the 'v-model' directive that changes the first letter of the 'v-model' binding value to uppercase.

<script setup>
</script>

<template>
  <input type="text" v-model.capitalize="" />
</template>

Share your Solutions Check out Solutions