Skip to content

Commit

Permalink
fix(module:list): specify template ref context to match instantiation (
Browse files Browse the repository at this point in the history
…#7756)

* input was specified as TemplateRef<void> but usage of template provides a context
* providing a context was/is possible because Angular does not check the template reference and the provided context to match
* consuming the context and pass in a template ref with context is also possible because a template ref is TemplateRef<any> per default
  • Loading branch information
pburgmer committed Dec 11, 2022
1 parent 5996019 commit 4eb32fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/list/list.component.ts
Expand Up @@ -116,7 +116,7 @@ export class NzListComponent implements AfterContentInit, OnChanges, OnDestroy,
@Input() nzHeader?: string | TemplateRef<void>;
@Input() nzFooter?: string | TemplateRef<void>;
@Input() nzItemLayout: NzDirectionVHType = 'horizontal';
@Input() nzRenderItem: TemplateRef<void> | null = null;
@Input() nzRenderItem: TemplateRef<{ $implicit: NzSafeAny; index: number }> | null = null;
@Input() @InputBoolean() nzLoading = false;
@Input() nzLoadMore: TemplateRef<void> | null = null;
@Input() nzPagination?: TemplateRef<void>;
Expand Down

0 comments on commit 4eb32fd

Please sign in to comment.