K
K
KononovD2019-04-04 18:41:52
Vue.js
KononovD, 2019-04-04 18:41:52

Why methods if there is computed?

Hello.
Nubian question, I know)
I understand that metods, with each interaction with the program, regenerates all values, and computed properties will only render if the fields on which these properties are tied are changed ...
And the fact that methods are called in the template so
{{ someMethod() }}
, and properties so
{{ someMethod }}
And the logical question has ripened: Why methods, if there are computed properties?
Thank you for your attention

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Alekseiev, 2019-04-04
@zorar4ik

Pass an argument to computed, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question