set
scope.set(key, value [, options])
Tries to set key
in the scope to value
. This looks for the first context in the value where
key
can be set. For example, if key
is "person.first.name"
, it will find the first
context where person.first
is some type of Object whose name
property can be set.
scope.set("person.first.name", "Justin");
Parameters
- key
{key}
:A dot-separated path. Use
"."
if you have a property name that includes a dot. - value
{*}
:The value to be set.