Closed toddhd closed 3 years ago
@toddhd Sorry for late reply. You can process data in array before your component is rendered in ngOninit and pass whole date object as option to daterangepicker component. Correct me if I am not answering it correctly.
How can we set range dynamically? For example: I want to set the startDate to endDate on the basis of backend response. When I override daterangepickerOptions.startDate = '2019/06/01' it does not update the input field.
Can you share any example of what you are trying to do @fatehuddin ??? Since the object gets passed by reference you will have to pass in whole new daterangepickerOptions object
Closing due to inactivity
I need to use this component within an *ngFor loop in HTML. The objects in the loop have the existing date ranges that I need to populate the control with. So for example, I want to do this:
This is not working for me however. Maybe I'm writing it incorrectly? I know that the control has a setStartDate()/setEndDate() function however I'm not sure how to make those work within the loop.
Any thoughts on how I might get this working?
Thanks!