computeData
Provides a compute that represents a key's value and other information about where the value was found.
scope.computeData(key, options)
Provides a compute that represents a key's value and other information about where the value was found.
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: