open-consul/ui/packages/consul-ui/app/services/env.mdx
John Cowen d47ccb859f
ui: Improves UI engineering docs (#9875)
Also fixes some typos in with-overlay
2021-03-17 15:58:17 +00:00

15 lines
309 B
Plaintext

# env
Our env service (along with the `env` helper which is backed by this service)
is used to access various global 'environment style' variables throughout the
app.
```js
export default class extends Ability {
@service('env') env;
canRead() {
return this.env.var('CONSUL_ACLS_ENABLED');
}
}
```