Skip to content

Commit 82cb131

Browse files
author
hxrxchang
committed
docs(README): fix missing imports in README.md
I think it is easy to understand if classes or variables and so on in codes are defined as much as possible.
1 parent 8cbd20b commit 82cb131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ control.value$.subscribe(value => {
8282
Use it with a `FormGroup`:
8383

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

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

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

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

0 commit comments

Comments
 (0)