title: Download file feature for all browser in angular 6. Works fine with chrome and all but not in IE. What am I missing?
body: <p>I have to create a download link in angular 6 that should work in all browser. It works fine with chrome, fire fox but not in IT. I created the blob and changes mumeType too. I might be missing somehting. 
  Code is below for IE download. </p>
  
  <hr>
  
  <p><strong>HTML code</strong></p>
  
  <pre><code>&lt;a *ngIf="true" class="link-dwnld" download="{{log.createdBy+'_'+(log.createDate | regexpReplace: '^(.*)Z$': '$1'| date: 'MMddyy_HHmm')+'.csv'}}"
                     [href]="downloadLinkI" (click)="getInputFileIE(log.overpaymentRecoveryId)"&gt;
                    {{log.createdBy+'_'+(log.createDate | regexpReplace: '^(.*)Z$': '$1'| date: 'MMddyy_HHmm')+'.csv'}}
                  &lt;/a&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>ts file code</strong></p>
  
  <pre><code>&gt; getInputFileIE(id: number): boolean {
  &gt;     console.log('from IE download. its IE');
  &gt;     this.recoveryLog.forEach( dataStr =&gt; {
  &gt;       if (dataStr.overpaymentRecoveryId === id) {
  &gt;         this.strI = dataStr.inputFile ;
  &gt;         this.strO = dataStr.outputFile;
  &gt;       }
  &gt;     });
  &gt;     const strMimeType = 'application/octet-stream;charset=utf-8';
  &gt;     // IE10+
  &gt;     if (navigator.msSaveBlob &amp;&amp; this.strI) {
  &gt;       return navigator.msSaveBlob(new Blob(['\ufeff', this.strI], {
  &gt;         type: strMimeType
  &gt;       }), this.fileNameI);
  &gt;     } else if (navigator.msSaveBlob &amp;&amp; this.strO) {
  &gt;       return navigator.msSaveBlob(new Blob(['\ufeff', this.strO], {
  &gt;         type: strMimeType
  &gt;       }), this.fileNameO);
  &gt;     }
  &gt;     return true;   }
  </code></pre>