This adds functionality for the start date to never be greater then the end date only if the start date is selected to be beyond end date. The end date can still be selected to be prior to the start date and will display a red error to the users. This adds ng-change to the start date input field and upon that change validates the dates. If dates are invalid it changes the end date to (start date +1). This removes an annoying error for users while trying to change dates.
This adds functionality for the start date to never be greater then the end date only if the start date is selected to be beyond end date. The end date can still be selected to be prior to the start date and will display a red error to the users. This adds ng-change to the start date input field and upon that change validates the dates. If dates are invalid it changes the end date to (start date +1). This removes an annoying error for users while trying to change dates.