title: How to hide environment file data in production mod angular 7
body: <p>We are using Angular 7 and declare some Key variable(API Key, salt) in Angular environment file for encryption/decryption purpose. But problem is that the environment file is visible by view sourcing the main.js file bundle after compilation in prod environment (Live server). Our aim is hide env file data from view sourcing.</p>
  <p>File name - environment.prod.ts</p>
  <pre><code>export const environment = {
    production: true,
    api: '',
    secratePhrase: '',
    key: '***********',
    salt: '******************',
    upload_url: '',
    frontend_url: '',
    recaptchasiteKey: '',
    siteTitle: '',
    jsonFileUrl: '',
    unauthorised_msg: '',
    map_embed_key: '',
    map_embed_zoom: **
  };
  </code></pre>
  <p>Please help us in this matter.</p>
  <p>Thanks.</p>