Skip to content

Commit 1ba2499

Browse files
authored
docs: update hasForm to hasControl (#10)
1 parent ab628b9 commit 1ba2499

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.all-contributorsrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"avatar_url": "https://avatars2.githubusercontent.com/u/739058?v=4",
4747
"profile": "https://github.com/dspeirs7",
4848
"contributions": [
49-
"code"
49+
"code",
50+
"doc"
5051
]
5152
}
5253
],

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ const nameControl = formsManager.getControl<string>('onboarding', 'name');
154154
}
155155
```
156156

157-
- `hasForm()` - Whether the form exists
157+
- `hasControl()` - Whether the control exists
158158

159159
```ts
160-
const hasForm = formsManager.hasForm('onboarding');
160+
const hasControl = formsManager.hasControl('onboarding');
161161
```
162162

163163
- `patchValue()` - A proxy to the original `patchValue` method
@@ -389,6 +389,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
389389
<td align="center"><a href="https://www.netbasal.com"><img src="https://avatars1.githubusercontent.com/u/6745730?v=4" width="100px;" alt=""/><br /><sub><b>Netanel Basal</b></sub></a><br /><a href="https://github.com/ngneat/forms-manager/commits?author=NetanelBasal" title="Code">💻</a> <a href="https://github.com/ngneat/forms-manager/commits?author=NetanelBasal" title="Documentation">📖</a> <a href="#ideas-NetanelBasal" title="Ideas, Planning, & Feedback">🤔</a></td>
390390
<td align="center"><a href="https://github.com/Coly010"><img src="https://avatars2.githubusercontent.com/u/12140467?v=4" width="100px;" alt=""/><br /><sub><b>Colum Ferry</b></sub></a><br /><a href="https://github.com/ngneat/forms-manager/commits?author=Coly010" title="Code">💻</a> <a href="https://github.com/ngneat/forms-manager/commits?author=Coly010" title="Documentation">📖</a></td>
391391
<td align="center"><a href="https://github.com/mehmet-erim"><img src="https://avatars0.githubusercontent.com/u/34455572?v=4" width="100px;" alt=""/><br /><sub><b>Mehmet Erim</b></sub></a><br /><a href="https://github.com/ngneat/forms-manager/commits?author=mehmet-erim" title="Documentation">📖</a></td>
392+
<td align="center"><a href="https://github.com/dspeirs7"><img src="https://avatars2.githubusercontent.com/u/739058?v=4" width="100px;" alt=""/><br /><sub><b>David Speirs</b></sub></a><br /><a href="https://github.com/ngneat/forms-manager/commits?author=dspeirs7" title="Code">💻</a> <a href="https://github.com/ngneat/forms-manager/commits?author=dspeirs7" title="Documentation">📖</a></td>
392393
</tr>
393394
</table>
394395

0 commit comments

Comments
 (0)