title: Open the first attached expansion panel in an Angular Material accordion
body: <p>Obviously you can use the input <code>expanded</code> on an Angular Material expansion panel to default a particular panel to be opened upon loading.  However, I have an accordion where all of the expansion panels are generated dynamically, and all are optional, but I would like for the first panel to be opened.</p>
  
  <p>I could go through each of my <code>ngFor</code>s that use templates to generate the panels to see if it exists and then on the first index add the attribute, but there are several loops that pull in templates and it seems messy.  I would like to be able to grab some property from the <code>mat-accordion</code> after the view has completed to see which is the first one attached to the accordion and add the attribute, but it looks like it isn't possible.  Anyone know if there is some way to do this?</p>