I have the following field in an angular2 page (I am not using forms).
<input id="firstname" name="firstname" class="field-input field-validation-input" [(ngModel)]="firstname"
placeholder="First name" spellcheck="false" required #firstNameField>
Now I want to display a message at the bottom of the field if it is invalid, in this scenario if it is empty. What is the best way to do this, I can use firstNameField.className but as you can see there are a number of classes here and trying to filter for ng-invalid might be a problem