Search
 
SCRIPT & CODE EXAMPLE
 

HTML

use v-model in custom component

/******************/
/* CUSTOM ELEMENT */
/******************/
<template>
	<!-- Everithing you whant -->
	<input :value="value" @input="$emit('input',$event.target.value)"/>
</template>

<script>
export default {
	name: "CustomElement",
	props: {
    	value: {
			type: String,
			default: ""
		}
	}
}
</script>

/******************/
/* PARENT ELEMENT */
/******************/
<CustomElement v-model="someVariable" />
Comment

PREVIOUS NEXT
Code Example
Html :: w3 unable to pdf in html without toolbar 
Html ::  
Html :: html samp 
Html :: times html 
Html :: bootstrap boilerplate code 
Html :: img text align 
Html :: como tirar a sublinhado da tag a 
Html :: htmladjacent 
Html :: html disable anchor link 
Html :: portfolio templates html 
Html :: how to change color in html 
Html :: html empty line 
Html :: html images with link 
Html :: html image in table 
Html :: bootstrap progress bar 
Html :: font awesome dropdown icon 
Html :: get current cpu utilization in percentage linux 
Html :: index.html 
Html :: basic video player html 
Html :: how to automatic get boilerplate code for html in vc code 
Html :: bootstrap jumbotron 
Html :: v-progress-circular 
Html :: ejs ternary 
Html :: form tag radio 
Html :: differences between html and xhtml 
Html :: bootstrap starter template 
Html :: how to make an image link on html 
Html :: html stands for 
Html :: external javascript file not working 
Html :: how to underline text in html 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =