diff --git a/packages/primeng/src/table/table.ts b/packages/primeng/src/table/table.ts index c252122d78..e061aeab99 100644 --- a/packages/primeng/src/table/table.ts +++ b/packages/primeng/src/table/table.ts @@ -1068,7 +1068,7 @@ export class Table extends BaseComponent implements OnInit, AfterViewInit, After @ContentChild('colgroup', { descendants: false }) _colGroupTemplate: TemplateRef; colGroupTemplate: Nullable>; - @ContentChild('rowexpansion', { descendants: false }) _expandedRowTemplate: TemplateRef; + @ContentChild('expandedrow', { descendants: false }) _expandedRowTemplate: TemplateRef; expandedRowTemplate: Nullable>; @ContentChild('groupheader', { descendants: false }) _groupHeaderTemplate: TemplateRef; @@ -1283,7 +1283,7 @@ export class Table extends BaseComponent implements OnInit, AfterViewInit, After this.colGroupTemplate = item.template; break; - case 'rowexpansion': + case 'expandedrow': this.expandedRowTemplate = item.template; break;