I am trying to build an object with keys that are defined in an environment file, so the keys will change based on the environment.
import { environment } from '../environments/environment'
export abstract class AbstractAPIService {
fieldValues[environment.stateDropdownID] = ['Al', 'AK', 'CT', ....]
}
However, the compiler is giving the following error: '=' expected.
Is it possible to do something like this in Angular 4 or TypeScript in general?
Thanks!