DEV Community

John Peters
John Peters

Posted on • Edited on

Material Expander : Open from code


<mat-expansion-panel [expanded]="expanded">

Then in your Typescript code create a variable named expanded. Set it to true when you want the panel to open

expander

Top comments (0)