I am not able to bind the input date range using ngModel or form-control. It gives an error- ERROR TypeError: dir.valueAccessor.writeValue is not a function. choosedDate method is invoked upon chosing or clicking on a date.
<ngx-daterangepicker-material
[ranges]="ranges"
[showCustomRangeLabel]="true"
[maxDate]="maxDate"
(choosedDate)="choosedDate($event)"
[autoApply]="true"
[(ngModel)]="selected">
</ngx-daterangepicker-material>