Skip to content

Commit fb2a3aa

Browse files
fix(accordion): uncomment cdk accordion example, add cdkAccordionItem selector (#11131)
1 parent 9540988 commit fb2a3aa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cdk/accordion/accordion-item.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let nextId = 0;
2828
* events and attributes needed to be managed by a CdkAccordion parent.
2929
*/
3030
@Directive({
31-
selector: 'cdk-accordion-item',
31+
selector: 'cdk-accordion-item, [cdkAccordionItem]',
3232
exportAs: 'cdkAccordionItem',
3333
})
3434
export class CdkAccordionItem implements OnDestroy {

src/demo-app/expansion/expansion-demo.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ <h1>matAccordion</h1>
7474
</mat-action-row>
7575
</mat-expansion-panel>
7676
</mat-accordion>
77-
<!--
78-
<h1>CdkAccordion</h1>
77+
78+
<h1>cdkAccordion</h1>
7979
<div>
8080
<p>Accordion Options</p>
8181
<div>
@@ -108,4 +108,4 @@ <h1>CdkAccordion</h1>
108108
<p *ngIf="item3.expanded">I only show if item 3 is expanded</p>
109109
</cdk-accordion-item>
110110
</cdk-accordion>
111-
-->
111+

0 commit comments

Comments
 (0)