JohannesHoppe / angular-date-value-accessor

Home of the Angular DateValueAccessor for <input type="date">
http://johanneshoppe.github.io/angular-date-value-accessor/
MIT License
78 stars 19 forks source link

useValueAsDate does not work #7

Closed aucevica closed 7 years ago

aucevica commented 7 years ago

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>