Skip to content

Commit

Permalink
docs(README): fix missing imports in README.md
Browse files Browse the repository at this point in the history
I think it is easy to understand if classes or variables and so on in codes are defined as much as possible.
  • Loading branch information
hxrxchang committed Feb 11, 2021
1 parent 8cbd20b commit 82cb131
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ control.value$.subscribe(value => {
Use it with a `FormGroup`:

```ts
import { FormGroup } from '@ngneat/reactive-forms';
import { FormGroup, FormControl } from '@ngneat/reactive-forms';

interface Profile {
firstName: string;
Expand Down Expand Up @@ -111,7 +111,7 @@ profileForm.patchValue({ firstName: 'Netanel' });
Or alternatively, with the controls as the generic type:

```ts
import { FormGroup } from '@ngneat/reactive-forms';
import { FormGroup, FormControl } from '@ngneat/reactive-forms';

interface ProfileControls {
firstName: string; // Note that for primitive types the type "FormControl" is infered, so no need to write that.
Expand Down

0 comments on commit 82cb131

Please sign in to comment.