Angular 7 routing not working properly on IE11

77 Views Asked by At

I have developed an application in Angular 7. It is working perfectly fine in chrome and mozilla but specifically in IE 11, the page is getting routed back. Once I open developer tools on IE 11 it works fine. I am not getting the issue. Can someone please help. I have written below code in my ajx.service.ts too.

private _request(method: RequestMethod, url: string, body?: any, options?: RequestOptionsArgs, params?: RequestParams): Rx.Observable<Response> {
if (this.isIE) {
      requestOptions.headers.set('Cache-Control', 'no-cache');
      requestOptions.headers.set('Pragma', 'no-cache');
      requestOptions.headers.set('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT');
      requestOptions.headers.set('If-Modified-Since', '0');
    }
}
0

There are 0 best solutions below