I'm currently attempting to construct an object using keys that are specified in an environment file, meaning the keys would vary depending on the environment.
import { environment } from '../environments/environment'
export abstract class AbstractAPIService {
fieldValues[environment.stateDropdownID] = ['Al', 'AK', 'CT', ....]
}
Nevertheless, I encountered the following error from the compiler: '=' expected.
Is there a way to achieve this functionality in Angular 4 or TypeScript in general?
Appreciate any assistance!