Categories
Is it possible to pass a parameter to computed vue3?
Hello, is it possible to use computed with parameter {{myComputed("someText")}}
{{myComputed("someText")}}
computed:{ someText: function(text){ return text.toUpperCase(); } }
Answer the question
In order to leave comments, you need to log in
Can. If the value of this computed is a function. But if you need to pass a parameter there, then, probably, it should be a method, not computed.
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question