1๐
You are missing a script
tag
try
<template>
<div>
<input type="text" v-model="text" :placeholder="placeholder" />
</div>
</template>
<script>
export default {
data() {
return {
text: '',
placeholder: 'Some placeholder text'
}
}
}
</script>
1๐
I figured it out myself! Since the background-color
of the input was white, I had to add some color to the css
, so it finally has come to work!
0๐
I also found out my input component BG color has been set as "bg-grey-800"(tailwind CSS): so I changed it. it works!
Thanks
- [Vuejs]-How to let one component correspond with the other for a specific function
- [Vuejs]-Can I keep Vuejs event in HTML data?
Source:stackexchange.com