mirror of
https://github.com/angular/angular.git
synced 2026-11-24 23:47:51 -05:00
Currently, the only way for a directive to export a validator is by providing a function. This makes it ackward to write validators that depend on directive inputs. In addition to supporting functions as validators, classes implementing the Validator interface are supported too.