---
title: "Discussion on \"Vuejs V-Model Support without need for value prop.\" | Hashnode"
description: "Discussion on \"Vuejs V-Model Support without need for value prop.\". Have you ever wished to create a component that supports the v-model directive, but works without it as well? \n<input v-model=\"searchText\">\nturns into \n<input\n  v-bind:value=\"searchText\"\n  v-on:input=\"searchText = $event.target.value\"\n>\nAs you can se..."
url: "https://hashnode.com/posts/vuejs-v-model-support-without-need-for-value-prop/60f58c31bb67011cb836e568"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vuejs V-Model Support without need for value prop.](https://espiramarvin.hashnode.dev/vuejs-v-model-support-without-need-for-value-prop?utm_source=hashnode&utm_medium=feed)

Have you ever wished to create a component that supports the v-model directive, but works without it as well? <input v-model="searchText"> turns into <input v-bind:value="searchText" v-on:input="searchText = $event.target.value" > As you can se...

Jul 19, 2021 · 3 min read · espiramarvin.hashnode.dev  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#vue](https://hashnode.com/tag/vue)

## Written by

[Marvin Espira](https://hashnode.com/@EspiraMarvin)

@EspiraMarvin · Nairobi, Kenya

  
[View profile](https://hashnode.com/@EspiraMarvin)

FullStack Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
