title: Spread operator to merge object on import - AOT
body: <p>I'm trying to provide an object wich contains my translations keys and it's values  example: </p>
  
  <pre><code>{ 
    "try_again_key": "Try Again", 
    "cancel_key": "Cancel",
    "other_key": "Other"
    ...
  } 
  </code></pre>
  
  <p>I have to import this object in my features module and provide it to a lib so that I can use translate from Angular but in my case, I need to merge 2 objects(both containing different translations keys) like this:</p>
  
  <pre><code>import { myFallback } from "../../locale/fallback-ts";
  import { otherFallback} from "@company/platform-components";
  
   @NgModule({
    imports: [
          TranslationsModule.forChild([
          {
              domain: "domain",
              service: "service",
              fallback: { ...otherFallback, ...myFallback },
          },
      ]),
  </code></pre>
  
  <p>when I log the fallback on JIT = contains my 2 merged objects</p>
  
  <p>when I log the fallback on AOT = empty object</p>
  
  <pre><code>import { myFallback } from "../../locale/fallback-ts";
  import { otherFallback} from "@company/platform-components";
   @NgModule({
    imports: [
          TranslationsModule.forChild([
          {
              domain: "domain",
              service: "service",
              fallback: myFallback,
          },
      ]),
  </code></pre>
  
  <p>when I log the fallback on JIT/AOT = contains my object</p>
  
  <p>but if I do like this, it works but than it doesn't help me because I won't be merging the objects, it seems spread operators is not supported by Angular AOT</p>
  
  <p>some links I found about AOT: <a href="https://angular.io/guide/aot-compiler" rel="nofollow noreferrer">https://angular.io/guide/aot-compiler</a>
  in this link it doesn't specify I can't use with spread operator</p>
  
  <p>this github issue looks like what I need but it was ignored by angular team <a href="https://github.com/angular/angular-cli/issues/9511" rel="nofollow noreferrer">https://github.com/angular/angular-cli/issues/9511</a></p>
  
  <p>my question is, am I doing something wrong? if it's a limitation from angular AOT, can I merge 2 objects another way?</p>
  
  <p>Things i've tried: </p>
  
  <p>using <code>Object.assign()</code> instead of spread operator.</p>
  
  <p>declaring a const that receives this 2 objects and than importing it on my <code>.forChild()</code> method</p>
  
  <p><code>export const fallback = { ...tsValues, ...jsonValues};</code></p>