docs(forms): remove rxjs of alias import in form async validator example (#36856)
In the code example of the AsyncValidator example there was an aliased import for the rxjs operator `of`. To align with the RxJS docs it should just use a plain import of `of` PR Close #36856
This commit is contained in:
parent
8d8e419664
commit
198fc6f108
|
@ -81,7 +81,7 @@ export interface Validator {
|
||||||
* async validator directive with a custom error key.
|
* async validator directive with a custom error key.
|
||||||
*
|
*
|
||||||
* ```typescript
|
* ```typescript
|
||||||
* import { of as observableOf } from 'rxjs';
|
* import { of } from 'rxjs';
|
||||||
*
|
*
|
||||||
* @Directive({
|
* @Directive({
|
||||||
* selector: '[customAsyncValidator]',
|
* selector: '[customAsyncValidator]',
|
||||||
|
@ -90,7 +90,7 @@ export interface Validator {
|
||||||
* })
|
* })
|
||||||
* class CustomAsyncValidatorDirective implements AsyncValidator {
|
* class CustomAsyncValidatorDirective implements AsyncValidator {
|
||||||
* validate(control: AbstractControl): Observable<ValidationErrors|null> {
|
* validate(control: AbstractControl): Observable<ValidationErrors|null> {
|
||||||
* return observableOf({'custom': true});
|
* return of({'custom': true});
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
|
Loading…
Reference in New Issue