Remember, it's written in camel case as formGroupName
and everything else looks great!
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-10 col-md-8 col-sm-offset-1 col-md-offset-2">
<form [formGroup]="signupForm" (ngSubmit)="onSubmit()">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" formControlName="username" class="form-control">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="text" id="email" formControlName="email" class="form-control">
</div>
<div formGroupName="jobDetail">
<div class="form-group">
<label for="code">Employee Code</label>
<input type="text" id="code" formControlName="code" class="form-control">
</div>
<div class="form-group">
<label for="post">Employee Post</label>
<input type="text" id="post" formcControlName="post" class="form-control">
</div>
</div>
<button class="btn btn-primary">Back</button>
<button class="btn btn-primary pull-right" type="submit">Submit</button>
</form>
</div>
</div>
</div>