How do you dynamically add computed properties into a Vue component? #10906
Unanswered
orientalperil
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a form that has many fields. Depending on the type selected by the user some fields should be visible or not visible. I want to use computed properties to conditionally show and hide the fields, but I do not want to code each property as there are many. I'd rather programmatically create the computed properties from an array of field names. My attempt to do this is below but did not work. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions