我的angular2应用程序抛出异常,说明对象仅在Microsoft Edge中不支持此操作。请检查下面的图片:Angular2:对象在Microsoft Edge浏览器中不支持此操作
我调试,发现该异常是在承诺抛出,则代码。更具体地讲,我得到的错误,然后在下面的代码:
this.dataLayerService
.postLogin(this.model, this.postURL)
.then(usermasterResponse => this.setToken(usermasterResponse))
.catch(error => {
this.toastCommunicationService.setMessage(error, "",
this.toastCommunicationService.errorType)
});
我还增加了以下脚本index.html文件中,但它也枉然。
<script src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.34.1/es6-shim.js"></script>
任何帮助将不胜感激。
在此先感谢。
找不到polyfill.ts文件,你能帮我吗? –
你是如何开始你的应用的? 有角起动器项目? –
无论如何,你应该有你的src文件夹下的main.ts和polyfills.ts –