add
Creates a new scope with its parent set as the current scope.
scope.add(context)
Creates a new scope with its parent set as the current scope.
Parameters
-
context
{*}The context of the new scope object.
Returns
{can.view.Scope}
A scope object.
Use
scope.add(context)creates a new scope object that first looks up values in context and then in the parentscopeobject.