Can functions be wrapped in {{}} in vue? How is it interpreted?

when learning vue, I want to trigger a function when the data changes, so I write it in double parentheses and find that it can be executed when the data changes, as follows:

{{f()}}  //2
<input v-model="a">

data:{
  a:"1",
  b:"2",
},
methods:{
    f(){
     return this.a*this.b;
    }
}

question: in the official document, you can only see that expressions can be used in {{}}. I don"t see the description that you can write a function in this way. (after checking, only one person can ask a question, but the answer is no). Is it reasonable to write in this way? How are the functions in {{}} resolved?

Nov.19,2021

{{}} is an expression. What is the expression first, not just 1 , aquib , you need to find out what they have in common, that is, they have a return value, so f () is also a reasonable expression, even f is the same

.
Menu