title: angular - changing data in assets folder of the build
body: <p>I want my angular app to work as a Standalone without a server. </p>
  
  <p>In the assets folder are images, sound-files etc. and one <em>game.json</em> file which contains the business data for the application (On a server this data would be stored in a DB or would be called via Rest).</p>
  
  <p>Everything works quite well. Using 'ng build' I can create the complete build which can be startet by opening the index.html in my OS - file manager without a http-Server.</p>
  
  <p>The problem is that I can't change the content of <em>game.json</em> <strong>after</strong> the build, because it seems to be included in the build in some way. Changes are ignored, it freezes the content in state it was compiled.</p>
  
  <p>Since I will run the app only locally I read my data this way:</p>
  
  <p><strong>typings.d.ts:</strong></p>
  
  <pre><code>declare module "*.json" {
     const value: any;
     export default value;
   }
  </code></pre>
  
  <p><strong>game.service.ts:</strong></p>
  
  <pre><code>import * as data_json from 'assets/data/game.json';
  
  @Injectable()
  export class GameService {
  
    constructor() { }
        loadGames(): Observable&lt;Game&gt; {
          return Observable.of(JSON.parse(JSON.stringify(data_json)));
        }
  }
  </code></pre>
  
  <p>I don't use HTTPClient because I would run into CORS problems.
  Reading the data works fine, but changes in the file game.json are ignored completely. </p>
  
  <p>Is there a way to make this file "modifyable" so I can change it in the assets folder of the build?</p>