Skip to content

Commit ac86bf7

Browse files
authored
Merge pull request #79 from hxrxchang/fix-missing-imports-in-docs
docs(README): fix missing imports in README.md
2 parents 8cbd20b + 82cb131 commit ac86bf7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
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)