Vue.js · Function
computed
computed() creates a reactive value from a getter. Vue tracks its dependencies, caches the result, and recalculates it when those dependencies change.
Last updated
Syntax
computed(getter, debuggerOptions?)
computed({ get, set }, debuggerOptions?)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ref()reactive()watchersTyping Computed PropertiesComputed DebuggingComputed Stability