To have the system automatically focus on the first control, you need to do something like this
1 | import { Component, ViewChild, Input, ElementRef, Inject} from '@angular/core'; |
Declare the following class level statement
1 | (“txtId”) txtId: ElementRef; |
Used in
1 | ngAfterViewInit() { |
HTML file will have the #txtSubject
1 | <mat-form-field class="full-width"> |