Question: I had an Angular app with `dev, prod & QA` environments.

I build it by ng build --env=QA

After building, How do I know, that it is in QA environment without deploying it to the server?

Answer: 
We can find it in dist/main.bundle.js with variable environment.

So, by this, we know which environment it is.

```
var environment = {
    production: true,
    envName: 'QA'
};

```
You can just import environment anywhere

```
import { environment } from './path/to/env';

```

...

And later use it like so

```
console.log(environment.envName);

```