G
G
gifon2022-04-11 15:42:15
Vue.js
gifon, 2022-04-11 15:42:15

Is it possible to pass a parameter to computed vue3?

Hello, is it possible to use computed with parameter
{{myComputed("someText")}}

computed:{
someText: function(text){
return text.toUpperCase();
}
}

text is proxy and not text...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2022-04-11
@gifon

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 your question

Ask a Question

731 491 924 answers to any question