how do I set the default value for vue parent-to-son props, and why doesn"t my default work?
parent one
<two :message="ac" :acacacac="aaa"></two>
import two from "./two";
data(){
return{
aaa:"",
ac:"",
}
},
components:{
two
},
parent two
<div>
<div></div>
{{message}}
{{acacacac}}
</div>
props:{
message:{
default:""
},
acacacac:{
default:""
}
},
Why doesn"t it work?