The environment in WebStd UI is similar to a context system in other JavaScript frameworks. The environment flows in one direction, from a parent EnvironmentKey provider the environment value flows down to children who query the environment using the @Environment decorator.
The environment in WebStd UI is similar to a context system in other JavaScript frameworks. The environment flows in one direction, from a parent
EnvironmentKey
provider the environment value flows down to children who query the environment using the@Environment
decorator.The environment system is based on the Context Community Protocol by the W3C's Web Components Community Group and should be interoperable with other web component frameworks that utilize the same protocol.
Example usage: