You can use the template reference variable in the first input, which will give you the ability to run .focus()on it.
In the template, you can add # fieldName1 to your input tag (i.e. <input type="text" #fieldName1>)
in your controller:
@ViewChild('fieldName1')
fieldName1: any;
Now you can do it this.fieldName1.nativeElement.focus()in the controller or fieldName1.focus()in the template.