If I remove useValueAsDate from the template it seems to work fine, I guess. But if I use it my form comes blank.
"app.module.ts" as is sample code.
My template:
<div class="form-field col-md-4"><input type="date" class="form-control" formControlName="dateOfBirth" useValueAsDate><p class="help-block text-danger"></p></div>
If I remove useValueAsDate from the template it seems to work fine, I guess. But if I use it my form comes blank. "app.module.ts" as is sample code. My template:
<div class="form-field col-md-4">
<input type="date" class="form-control" formControlName="dateOfBirth" useValueAsDate>
<p class="help-block text-danger"></p>
</div>