简体   繁体   English

IE 10/11和Angular 2的Edge Shim

[英]IE 10/11 and Edge Shim for Angular 2

I am getting an error saying the page targets document 5 mode and some features are unavailable when running a Angular2 application. 我收到一个错误消息,说页面以文档5模式为目标,并且在运行Angular2应用程序时某些功能不可用。 What all shims are needed for IE and Edge for Angular2? IE和Edge for Angular2需要什么垫片? I am on IE 11 and also the same page as well does not work with Edge. 我在IE 11上,同样的页面也无法在Edge上使用。

在此处输入图片说明

This may not have anything to do with Shims or Angular2. 这可能与Shims或Angular2没有任何关系。 If your page is rendering in Document 5 mode in IE/Edge, there is a possibility that the page is not defining the doctype properly. 如果您的页面在IE / Edge中以“文档5”模式呈现,则该页面可能未正确定义doctype。

To resolve, ensure that you have the following doctype directive: 若要解决,请确保您具有以下doctype指令:

<!DOCTYPE html>

Then check your document mode from your browser: 然后从浏览器检查您的文档模式:

在此处输入图片说明

For more information: 欲获得更多信息:

https://msdn.microsoft.com/en-us/hh779632.aspx https://msdn.microsoft.com/en-us/hh779632.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM