Skip to content

Commit

Permalink
Merge pull request #79 from hxrxchang/fix-missing-imports-in-docs
Browse files Browse the repository at this point in the history
docs(README): fix missing imports in README.md
  • Loading branch information
NetanelBasal authored Feb 12, 2021
2 parents 8cbd20b + 82cb131 commit ac86bf7
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 ac86bf7

Please sign in to comment.