app.component.html
<h2 style="padding-top:25px; padding-bottom:25px;">
Angular Material - Open Accordion multiple panels at once
</h2>
<mat-accordion multi="true">
<mat-expansion-panel hideToggle>
<mat-expansion-panel-header>
<mat-panel-title>Angular</mat-panel-title>
</mat-expansion-panel-header>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Integer vitae semper massa. Donec maximus, dui nec
dignissim blandit, ante odio varius ex,
nec volutpat erat justo ac magna.
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>React</mat-panel-title>
</mat-expansion-panel-header>
Vivamus ornare ipsum sit amet imperdiet laoreet.
Cras maximus elementum varius. Integer nisi tellus,
dapibus vitae neque non, tempor vehicula velit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>Vue</mat-panel-title>
</mat-expansion-panel-header>
Sed vitae felis id velit luctus elementum ut quis nisl. Curabitur
consectetur, ipsum eget vulputate mattis, odio dolor hendrerit
massa, eget scelerisque justo tellus eu lectus.
</mat-expansion-panel>
</mat-accordion>
app.module.ts [import]
import {MatExpansionModule} from '@angular/material/expansion'
- angular material - How to use Accordion
- angular material - How to use Expansion Panel
- angular material - How to disable a panel in Accordion
- angular material - How to hide Accordion panels toggle icon
- angular - Interpolation expression
- angular - Property binding example
- angular - Multiple condition
- angular - How to bind style
- angular - How to create a counter
- angular - Generate random whole number
- angular bootstrap - Danger warning success alert
- angular bootstrap - How to use Rating
- angular bootstrap - How to show striped Progressbar
- angular bootstrap - How to change Progressbar height
- angular bootstrap - How to delay Popover open close