Here is example player:

1. Comparing value is passed In next example value of the form control must be equal to current today date.

Select date {{equalFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and end date has to be the same as start date.

Select start date {{equalForm.get('startDate').errors | controlErrorResolver}} Select end date {{equalForm.get('endDate').errors | controlErrorResolver}} Is form valid: {{equalForm.valid}}

1. Comparing value is passed In next example selected date must be strictly greater than current today date.

Select date {{greaterFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and end date must be strictly greater than start date.

Select start date {{greaterForm.get('startDate').errors | controlErrorResolver}} Select end date {{greaterForm.get('endDate').errors | controlErrorResolver}} Is form valid: {{greaterForm.valid}}

1. Comparing value is passed In next example value of the form control must be greater than or equal to current today date.

Select date {{greaterEqualFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and end date must be greater than or equal to start date.

Select start date {{greaterEqualForm.get('startDate').errors | controlErrorResolver}} Select end date {{greaterEqualForm.get('endDate').errors | controlErrorResolver}} Is form valid: {{greaterEqualForm.valid}}

1. Comparing value is passed In next example value of the form control must be strictly less than current today date.

Select date {{lessFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and end date must be strictly less than start date.

Select start date {{lessForm.get('startDate').errors | controlErrorResolver}} Select end date {{lessForm.get('endDate').errors | controlErrorResolver}} Is form valid: {{lessForm.valid}}

1. Comparing value is passed In next example value of the form control must be less than or equal to current today date.

Select date {{lessEqualFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and end date must be less than or equal to start date.

Select start date {{lessEqualForm.get('startDate').errors | controlErrorResolver}} Select end date {{lessEqualForm.get('endDate').errors | controlErrorResolver}} Is form valid: {{lessEqualForm.valid}}