mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Example:
@Directive({
selector: '[uniq-login-validator]',
providers: [provide(NG_ASYNC_VALIDATORS, {useExisting: UniqLoginValidator, multi: true})]
})
class UniqLoginValidator implements Validator {
validate(c) { return someFunctionReturningPromiseOrObservable(); }
}
|
||
|---|---|---|
| .. | ||
| animate | ||
| core | ||
| http | ||
| mock | ||
| router | ||
| symbol_inspector | ||
| testing | ||
| tools | ||
| upgrade | ||
| web_workers | ||
| platform.dart | ||
| platform.ts | ||
| public_api_spec.ts | ||