computeData
can.view.Scope.computeData
scope.computeData(key, options)
Parameters
-
key
{key}A dot seperated path. Use
"."if you have a property name that includes a dot. -
options
{readOptions}OptionalOptions that configure how the
keygets read.
Returns
{Object}
An object with the following values:
Use
scope.computeData(key, options)is used heavily by can.mustache to get the value of a key value in a template. Configure how it reads values in the scope and what values it returns with the options argument.The
computevalue is writable. For example: