首页 > 解决方案 > Angular Datatable 未在第一次加载时加载

问题描述

我在这里使用带有 Angular2 的 DataTable 在这里 DataTable 正在工作我刷新页面。但它没有在第一次运行时加载

<table datatable class="row-border hover">
      <thead>
        <tr>
          <th>Auction ID</th>
        </tr>
      </thead>
      <tbody>

        <tr *ngFor="let value of auction">
          <td>{{value.name}}</td>
      <tbody>
    </table>

同时我使用了普通的 DataTable(Without *ngFor="") 它工作正常,没有任何问题

<table datatable class="row-border hover">
          <thead>
            <tr>
              <th>Auction ID</th>
            </tr>
          </thead>
          <tbody>

            <tr>
              <td>John</td>
          <tbody>
        </table>

标签: angular2-formsangular-datatables

解决方案


推荐阅读