This is just a very simple Vue code but I can't get it to work.
<input type="text" :class="'required-class' + custom_class" />
and my props is
props:{
custom_class:{type:String}
}
expected output:
<input type="text" class="required-class some-class-submitted" />
but returns:
<input type="text" class="NaN some-class-submitted" />
P.S I'm aware I can achieve this using the computed property, but is there any simpler solution without using it?