There is a isDevMode convenience method is Angular, as described here: https://alligator.io/angular/environment-variables/
import { Component, OnInit, isDevMode } from '@angular/core';
Is there a convenience method to get the actual environment mode? Like prod, dev, mock, etc?
I know I can add an extra variable in environment.ts for it. But if we are running the app with --environment mock already, I don't want to have to set environmentMode=mock in environment.mock.ts