Angular form validation: compare two fields

Viewed 26939

In an Angular 4 application, how can I validate two fields of a form doing a comparison?

For example, let's suppose that my form has a startDate and an endDate date fields and I want to make sure that the endDate must be bigger than the startDate.

2 Answers
Related