attr
Reads a value from the current context or parent contexts.
scope.attr(key)
Reads a value from the current context or parent contexts.
Parameters
-
key
{key}
A dot seperated path. Use
"."
if you have a property name that includes a dot.
Returns
{*}
The found value or undefined if no value is found.
Use
scope.attr(key)
looks up a value in the current scope's context, if a value is not found, parent scope's context will be explored.