How to use environment variable in Angular 16
4 min readJul 25, 2023
In this article I will demonstrate to you how to set and access environment variables in Angular 16.
1 — Create an empty Angular Project
First, let’s start off my creating an empty Angular 16 project. To do that open a Terminal in your VScode and type the following command:
> ng new environmentVariablesDemo
and make sure to follow the command prompts. This might take a bit to complete because Angular is going to download its required packages. Below is…