dr-roshyara / v-model

This repository explains the alternative of v-model. V-model is a two way binding data. If you have for example bind the data and at the same time you determine the value programatically, then you need to use v-bind and v-model for the input field. However these both cant be combined any more. So we need different techniques.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo explains an alternative to Vue-model. We use v-model in the following situation

<div>
<input v-model ="myvar" value="test"> 
{{myvar}}
</div>
<script>
export default{
    data (){
        return {
            mvar : String 
        }
    }

}
</script>

We use v-model for a two way binding. However sometimes we need to determine the binding value by programs and it not known before the program starts. So we need to bind the value with v-bind and at the same time use v-model for the input field. This repo has an example to explain how to use v-model and v-bind at the same time.

About

This repository explains the alternative of v-model. V-model is a two way binding data. If you have for example bind the data and at the same time you determine the value programatically, then you need to use v-bind and v-model for the input field. However these both cant be combined any more. So we need different techniques.


Languages

Language:HTML 52.2%Language:Vue 47.8%