<div style="display:inline-block">
    <form [formGroup]="contactForm" (ngSubmit)="onSubmit()">
        <div>
            <p>Contact Us!</p>
            <div>
                <input type="text" formControlName="firstName" required class="form-control input"
                    placeholder="First name">
                <!-- <div *ngIf="errors.required">First Name Required</div> -->
            </div>
            <div>
                <input type="text" formControlName="lastName" required class="form-control input "
                    placeholder="Last name">
            </div>
        </div>
        <input type="email" formControlName="email" required class="form-control  input" placeholder="E-mail">
        <textarea type="text" formControlName="message" class="form-control input"
            placeholder="Type Message Here..."></textarea>
        <div>
            <button type="submit">Send</button>
        </div>
    </form>
    <div>
        <ngb-alert *ngIf="formValid == false" type="danger">{{ msg }}</ngb-alert>
        <ngb-alert *ngIf="formValid == true" type="success">{{ msg }}</ngb-alert>
        <div class="invalid-text" *ngIf="formValid">{{ msg }}</div>
    </div>
</div>