Skip to content

Commit

Permalink
feat(accordion): add exportAs for brnAccordionItem and brnAccordion (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hillin authored Dec 23, 2024
1 parent 1278091 commit 3164754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/brain/accordion/src/lib/brn-accordion.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { fromEvent } from 'rxjs';
host: {
'[attr.data-state]': 'state()',
},
exportAs: 'brnAccordionItem',
})
export class BrnAccordionItemDirective {
private static _itemIdGenerator = 0;
Expand Down Expand Up @@ -118,6 +119,7 @@ const VERTICAL_KEYS_TO_PREVENT_DEFAULT = ['ArrowUp', 'ArrowDown', 'PageDown', 'P
'[attr.data-state]': 'state()',
'[attr.data-orientation]': 'orientation()',
},
exportAs: 'brnAccordion',
})
export class BrnAccordionDirective implements AfterContentInit, OnDestroy {
private readonly _el = inject(ElementRef);
Expand Down

0 comments on commit 3164754

Please sign in to comment.