Hi i am looking at the following Angular code, which is an error message div if the user does not enter their name in the Name field.
<div *ngIf ="userName.errors?.required && username.touched" class="alert alert-danger"> Name is required</div>
I understand that this div will show if the Name field is touched and the username has not been entered in the Name field
But I'm not sure i follow the ?.
syntax. How should i read it.
Thanks