scope/key
Looks up the key on the scope or [can-view-scope.Options helper scope] in a template, walking until a value is found.
scope/key
Looks up a value in the scope or [can-view-scope.Options helper scope] by walking up to parent scopes until a value is found. This results in a KeyLookup Expression. KeyLookup Expression expressions can provide different values depending on what type of expression they are within.
<div>
<h1>Title</h1>
<h2>Team {{scope/name}}</h2>
</div>
Use
Use when you are unable to directly reference a value using ./current,
../parent, this, etc. you can use scope/key
to look
up the value anywhere on the scope.
These two are equivalent:
<span>{{scope.find('person')}}</span>
and
<span>{{scope/person}}</span>