Alpha
Options for ContextRegistry.scope.
Two knobs, both optional:
host
with
They compose: pass both and with overrides whatever the DOM provides for the named keys. Pass neither and get returns undefined for everything.
get
undefined
Optional
Element to start looking from when resolving context keys that come from the DOM.
Fixed values for specific context keys. Wins over anything the DOM or a session-wide default would provide.
Options for ContextRegistry.scope.
Two knobs, both optional:
host, start a DOM walk from this element. Typical for components.with, hand in fixed values for some context keys. Typical for tests or headless code that has no DOM host.They compose: pass both and
withoverrides whatever the DOM provides for the named keys. Pass neither andgetreturnsundefinedfor everything.