I am encountering an issue with disabling past dates in a date-picker using HTML5. When I use the date-picker without any specific conditions, the disabled dates work as expected.
However, when I try to use the date-picker with conditions, it does not function properly. I attempted to append the current date to the "min" attribute of the date element using jQuery, but I know that using jQuery with Angular is considered bad practice. Unfortunately, I couldn't figure out how to access or append the attribute of the date element using form control typescript (e.g. formname.get('formcontrolName')).
I am hoping to find a solution where the date-picker will work correctly with the specified conditions.