diff --git a/packages/primitives/accordion/src/components/accordion-content/accordion-content.component.ts b/packages/primitives/accordion/src/components/accordion-content/accordion-content.component.ts index 41a3951..5b4dfe0 100644 --- a/packages/primitives/accordion/src/components/accordion-content/accordion-content.component.ts +++ b/packages/primitives/accordion/src/components/accordion-content/accordion-content.component.ts @@ -74,6 +74,11 @@ export class NgxPrimerAccordionContentComponent implements OnInit { return this.accordionItem?.accordionTrigger?.accordionTriggerId; } + @HostBinding('attr.data-value') + public get dataValueAttr() { + return this.accordionItem?.value() as T; + } + ngOnInit(): void { this.runInitializationFn(); }