javascript - Angular 2 - IE 11 issue with http get request -
i have weird problem angular app in ie11. happens:
on 3 page (3 different routes) website 1 not working on first load (it works if press f5 and/or have opened web dev console). page have debugged because loads half of it. breaks when reaches part of code in component:
... constructor(public http: http) { //... stuff http.get('./data/data.json') .map((res:response) => res.json()) .subscribe( data => { alert ('test'); }, // err => console.error(err)//, // () => console.log('done') ); //... stuff }
the alert won't show on first load if reload or if console open. no other js errors show up, other browsers fine go.
what have:
i have angular version 2.0.0-rc.4 , using shim: https://unpkg.com/core-js/client/shim.min.js
what i've tried far:
i've tried lots of different shims, broke web, none did came had (my web based upon heroes tutorial, worked there).
i've tried changing angular version breaks website finished , cannot afford upgrade code new version. can't break website @ moment fix 1 issue ie.
i've added index.html:
<meta http-equiv="x-ua-compatible" content="ie=edge">
no change that. tried removing cache metas, no changes either.
anything else might missing?
Comments
Post a Comment