Skip to content

Commit 7a691f5

Browse files
committed
fix doc
1 parent 7077bfb commit 7a691f5

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/aria/accordion/accordion-group.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ import {ACCORDION_GROUP} from './accordion-tokens';
3333
* <div ngAccordionGroup [multiExpandable]="true">
3434
* <div class="accordion-item">
3535
* <h3>
36-
* <button ngAccordionTrigger panel="panel1">Item 1</button>
36+
* <button ngAccordionTrigger [panel]="panel1">Item 1</button>
3737
* </h3>
38-
* <div ngAccordionPanel #panel1="ngAccordionTrigger">
38+
* <div ngAccordionPanel #panel1="ngAccordionPanel">
3939
* <ng-template ngAccordionContent>
4040
* <p>Content for Item 1.</p>
4141
* </ng-template>
4242
* </div>
4343
* </div>
4444
* <div class="accordion-item">
4545
* <h3>
46-
* <button ngAccordionTrigger panel="panel2">Item 2</button>
46+
* <button ngAccordionTrigger [panel]="panel2">Item 2</button>
4747
* </h3>
48-
* <div ngAccordionPanel #panel2="ngAccordionTrigger">
48+
* <div ngAccordionPanel #panel2="ngAccordionPanel">
4949
* <ng-template ngAccordionContent>
5050
* <p>Content for Item 2.</p>
5151
* </ng-template>

src/aria/accordion/accordion-panel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ import {DeferredContentAware, AccordionTriggerPattern} from '../private';
2222
* The content panel of an accordion item that is conditionally visible.
2323
*
2424
* This directive is a container for the content that is shown or hidden. It should
25-
* exlse a template reference that will be used by the corresponding `ngAccordionTrigger`.
25+
* expose a template reference that will be used by the corresponding `ngAccordionTrigger`.
2626
* The content within the panel should be provided using an `ng-template` with the
2727
* `ngAccordionContent` directive so that the content is not rendered on the page until the trigger
2828
* is expanded. It applies `role="region"` for accessibility and uses the `inert` attribute to hide
2929
* its content from assistive technologies when not visible.
3030
*
3131
* ```html
32-
* <div ngAccordionPanel #panel="ngAccordionTrigger">
32+
* <div ngAccordionPanel #panel="ngAccordionPanel">
33+
* <ng-template ngAccordionContent>
3334
* <p>This content is lazily rendered and will be shown when the panel is expanded.</p>
3435
* </ng-template>
3536
* </div>

src/aria/accordion/accordion-trigger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {AccordionPanel} from './accordion-panel';
3131
* The `disabled` input can be used to disable the trigger.
3232
*
3333
* ```html
34-
* <button ngAccordionTrigger panel="panel">
34+
* <button ngAccordionTrigger [panel]="panel">
3535
* Accordion Trigger Text
3636
* </button>
3737
* ```

0 commit comments

Comments
 (0)