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

Conference Offer
Get 50% OFF yearly or lifetime access to Vue learning
Full course library + Vue.js Master Class
Claim Offer
37
hours
:
08
minutes
:
41
seconds
: