Here is example player:

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

What is your age? (Must be equal to 18) {{equalFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and second one must have value equal to first one.

First Age * {{equalForm.get('firstAge').errors | controlErrorResolver}} Second Age * {{equalForm.get('secondAge').errors | controlErrorResolver}} Is form valid: {{equalForm.valid}}

1. Comparing value is passed In next example value of the form control must be strictly greater than 18.

What is your age? (Must be greater than 18) {{greaterFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and second one must have value greater than first one.

First Age * {{greaterForm.get('firstAge').errors | controlErrorResolver}} Second Age * {{greaterForm.get('secondAge').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 18.

What is your age? (Must be greater than or equal to 18) {{greaterEqualFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and second one must have value greater than or equal to first one.

First Age * {{greaterEqualForm.get('firstAge').errors | controlErrorResolver}} Second Age * {{greaterEqualForm.get('secondAge').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 18.

What is your age? (Must be less than 18) {{lessFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and second one must have value less than first one.

First Age * {{lessForm.get('firstAge').errors | controlErrorResolver}} Second Age * {{lessForm.get('secondAge').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 18.

What is your age? (Must be less than or equal to 18) {{lessEqualFormControl.errors | controlErrorResolver}}

2. Comparing control value is passed Here are two form controls that are required and second one must have value less than or equal to first one.

First Age * {{lessEqualForm.get('firstAge').errors | controlErrorResolver}} Second Age * {{lessEqualForm.get('secondAge').errors | controlErrorResolver}} Is form valid: {{lessEqualForm.valid}}