DEV Community

loading...

Material Expander : Open from code

jwp profile image John Peters Updated on ・1 min read


<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

Discussion (0)

pic
Editor guide