角色组件未在Internet Explorer 11上显示

ben*_*-we 2 material internet-explorer-11 angular

我已经编写了一个Angular 4 Material 2应用程序,一切都在Chrome中工作正常,但在Internet Explorer上页面是空的.我已经添加了一个<h1>到index.html,但是在我的content.component.html中添加一个不起作用,甚至整个组件的代码也没有添加到DOM中.

index.html(<h1>Test</h1>在IE中显示):

<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <title>ITEM Projekte</title>
  <base href="/">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="icon" type="image/x-icon" href="favicon.ico">

  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
</head>
<body>
  <h1>Test</h1>
  <app-root></app-root>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

app.component.html(<h1>Test</h1>未在IE中显示):

<h1>Test</h1>
<md-card>

  <md-card-title>ITEM Projekt anlegen</md-card-title>

  <md-card-subtitle>PROJEKTDATEN</md-card-subtitle>
  <md-card-content>
    <div style="width: 100%; ">
      <md-input-container *ngFor="let item of projektdaten" style="margin-right: 15px; display: inline-block; ">
        <label style="width: 120px; display: block;">{{item.identifier}}:</label><input mdInput name={{item.identifier}} style="width: 150px; " (keyup)="setProjectData(item, $event.target.value)">
      </md-input-container>
    </div>

    <div style="margin-top: 20px;">
      <md-radio-group>
        <md-radio-button value="1" style="margin-right: 30px; ">Neubau</md-radio-button>
        <md-radio-button value="2">Umbau</md-radio-button>
      </md-radio-group>
    </div>

  </md-card-content>

  <md-card-subtitle>MATERIALKOSTEN</md-card-subtitle>
  <md-card-content>
    <md-input-container><label>Test</label><input mdInput></md-input-container>
  </md-card-content>

  <md-card-subtitle>PERSONALKOSTEN</md-card-subtitle>
  <md-card-content>

  </md-card-content>

</md-card>
Run Code Online (Sandbox Code Playgroud)

顺便说一句:在Edge Everythings也工作得很好,但我需要它在IE中工作...如果您需要任何其他代码,请告诉我.

提前致谢

ben*_*-we 5

我在这里找到了解决方案.

只需删除polyfills.ts中此行下方的评论:

/** IE9, IE10 and IE11 requires all of the following polyfills. **/
Run Code Online (Sandbox Code Playgroud)