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:
Jan-Niklas W 2020-04-29 14:12:19 +02:00 committed by Misko Hevery
parent 8d8e419664
commit 198fc6f108
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ export interface Validator {
* async validator directive with a custom error key.
*
* ```typescript
* import { of as observableOf } from 'rxjs';
* import { of } from 'rxjs';
*
* @Directive({
* selector: '[customAsyncValidator]',
@ -90,7 +90,7 @@ export interface Validator {
* })
* class CustomAsyncValidatorDirective implements AsyncValidator {
* validate(control: AbstractControl): Observable<ValidationErrors|null> {
* return observableOf({'custom': true});
* return of({'custom': true});
* }
* }
* ```