Created
July 21, 2021 07:58
-
-
Save GaetanoPiazzolla/aaf33748d19a17bcb235d3b4ab831e25 to your computer and use it in GitHub Desktop.
Example usage of the environment constant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { environment } from 'environment' | |
. . . | |
fetch(environment.apiBackendUrl + ‘/path’) | |
.then(response => response.json()) | |
.then(data => console.log(data)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to medium article:
Update Angular/React environment dynamically reading variables from Kubernetes ConfigMaps