Minnu Merin Alex

Minnu Merin Alex

  • 1.7k
  • 191
  • 16.6k

Bind date to a formControlname input in Angular7

Apr 16 2019 11:41 PM
Hi,
 I am new to angular. I have an input with type "date".How will I bind the date to this input?
 
 <input type="date" class="form-control" formControlName="startDateInput">
  i tried like this but didnt work for me
 
this.createForm.patchValue({
startDateInput:this.resourceData['period'].start,
});
 
please help to do this 

Answers (1)