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.
File name - environment.prod.ts
export const environment = {
production: true,
api: '',
secratePhrase: '',
key: '***********',
salt: '******************',
upload_url: '',
frontend_url: '',
recaptchasiteKey: '',
siteTitle: '',
jsonFileUrl: '',
unauthorised_msg: '',
map_embed_key: '',
map_embed_zoom: **
};
Please help us in this matter.
Thanks.