Angular 4 rendering子选择器将列对齐打断到我的表中

Angular 4 rendering子选择器将列对齐打断到我的表中,angular,Angular,我在应用程序中使用angular 4,但我对angular选择器有问题。 我有一个组件表和一个行子元素。 子项的选择器名称为“行”。 我从table component中调用它,如下所示: <table class="table table--striped"> <thead class="thead--dark"> <tr> <th>Data versamento</th> <th>Importo<

我在应用程序中使用angular 4,但我对angular选择器有问题。 我有一个组件表和一个行子元素。 子项的选择器名称为“行”。 我从table component中调用它,如下所示:

<table class="table table--striped">
 <thead class="thead--dark">
  <tr>
   <th>Data versamento</th>
   <th>Importo</th>
   <th>ABI</th>
   <th>CAB</th>
   <th></th>
  </tr>
 </thead>
 <tbody class="form--light">
  <row [data]="item" *ngFor="let item of enpals_payments"></row>
 </tbody>
</table>

数据范萨门托
重要的
阿比
驾驶室
将子选择器打印到html表中,会中断列对齐


如何强制跳过行选择器渲染?

您可以使用
colspan

<tbody class="form--light">
  <tr>
    <td colspan="5"> 
      <row [data]="item" *ngFor="let item of enpals_payments"></row>
    </td>
  </tr>
 </tbody>

大家好,我找到了正确的解决方案。。在这儿吗