title: Dynamic Key Value Assignment in Angular 4 / Typescript
body: <p>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.</p>
  
  <pre><code>import { environment } from '../environments/environment'
  
  export abstract class AbstractAPIService {
      fieldValues[environment.stateDropdownID] = ['Al', 'AK', 'CT', ....]
  }
  </code></pre>
  
  <p>However, the compiler is giving the following error: <code>'=' expected.</code></p>
  
  <p>Is it possible to do something like this in Angular 4 or TypeScript in general?</p>
  
  <p>Thanks!</p>