Hi Codewise
Did you try adding a template var to the element?
<mat-expansion-panel #thisPanel class="supervisor-panel">
<mat-expansion-panel-header>
<div class="supervisor">1001 Clark Kent</div>
{{ thisPanel.expanded ? 'Open' : 'Closed }}
</mat-expansion-panel-header>
<div>Expanded content</div>
</mat-expansion-panel>
Did not try, but I suspect it will work. (if not, provide a stackblitz and
I will fix it)
Regards
Sander
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.