I'm fairly new to Angular and am trying to use a material input component inside a material expansion panel. I want the input
to be autofocused when I expand the expansion panel. but the autofocus="autofocus"
does not seem to work on the input field for some reason. I see that there is a focus
method available in the material docs but I'm not sure how to use this. Here is the code:
`
<mat-accordion>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
Personal data
</mat-panel-title>
<mat-panel-description>
Type your name
</mat-panel-description>
</mat-expansion-panel-header>
<mat-form-field>
<input matInput placeholder="First name" autofocus="autofocus">
</mat-form-field>
</mat-expansion-panel>
</mat-accordion>
`