Skip to content

Instantly share code, notes, and snippets.

@alexdiliberto
Last active January 11, 2018 00:12
Show Gist options
  • Save alexdiliberto/f24e741f3a97a8d5c64768fe7893a560 to your computer and use it in GitHub Desktop.
Save alexdiliberto/f24e741f3a97a8d5c64768fe7893a560 to your computer and use it in GitHub Desktop.
How to access ember config/environment.js variables from the browser?
  1. require('<module-prefix>/config/environment')
  2. Grab the container from wherever and .lookup('config:environment')
  3. From <meta> tag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment