title: Prevent from downloading config.ts file in angular 6
body: <p>I am working on angular 6 application and i had query regarding configuration files in angular.</p>
  
  <p>Just like web.config, we can create config.ts file and keep our configuration setting here. but how i prevent from downloading this config.ts file from browser?</p>
  
  <p>I want my angular application to read my configuration file (config.ts) but does not allow any one to download it from url. </p>
  
  <p>example - if user hit this url (<strong>abc.com/assest/config.ts</strong>) on browser then its not allowed him to see/download config.ts file (just like web.config)</p>
  
  <p>or any alternate solution will be appreciated.</p>
  
  <p>you can refer 1 post related to it (but i am not able to understand the solution ) - <a href="https://stackoverflow.com/questions/48638456/how-to-restrict-assets-files-to-access-directly-in-angular-4">how to restrict assets files to access directly in angular 4</a></p>
  
  <p>Thanks in advance.</p>