Can't pass :format as a variable
jrocksinabox opened this issue · 1 comments
jrocksinabox commented
This works as expected:
<date-pick :format="'MM/DD/YYYY'">
But setting the format as a property (to be dynamic) the date picker no longer works
<date-pick :format="myDateFormat">
data() {
return {
myDateFormat : "'MM/DD/YYY'",
}
}
I've tried with and without single quotes, double quotes, braces. Any suggetions
jrocksinabox commented
This suddenly works as expected. Must have been doing something dumb on my end. Thanks for everyone's time.