Skip to content

Commit

Permalink
fix(module:list): fix template rendering order (#6232)
Browse files Browse the repository at this point in the history
close #6229
  • Loading branch information
cipchk authored Dec 21, 2020
1 parent 3da9ccf commit 4324011
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/list/list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { NzListFooterComponent, NzListLoadMoreDirective, NzListPaginationCompone
<ng-container *ngFor="let item of nzDataSource; let index = index">
<ng-template [ngTemplateOutlet]="nzRenderItem" [ngTemplateOutletContext]="{ $implicit: item, index: index }"></ng-template>
</ng-container>
<ng-content select="nz-list-item, [nz-list-item]"></ng-content>
<ng-content></ng-content>
</div>
</ng-template>
Expand Down Expand Up @@ -64,7 +64,6 @@ import { NzListFooterComponent, NzListLoadMoreDirective, NzListPaginationCompone
</div>
<nz-list-empty *ngIf="!nzLoading && nzDataSource && nzDataSource.length === 0" [nzNoResult]="nzNoResult"></nz-list-empty>
</ng-container>
<ng-content></ng-content>
</nz-spin>
<nz-list-footer *ngIf="nzFooter">
Expand Down

0 comments on commit 4324011

Please sign in to comment.