mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
547e011abe
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.