hey guys can anyone help me i tried a lot but don't know why it is not working.... what is happening is, when i am opening expansion panel Programmatically then it is open sometime and sometime not. when i do a ctrl+shift+R then its work fine. but when i close the panel and navigate again to that component then it doesnt work. but the toggle shows its expensded (You can see in red highlighted)
See image belowenter image description here
what i am doing is when expansion panel have data then i set ingredientsExpansion to true.
headPanleToggle(){
this.ingredientsExpansion=true; //head panel Toggle
}
<mat-expansion-panel [expanded]="ingredientsExpansion">
but the pannel is not opening afer seeting it true
see below image enter image description here