Skip to content

Commit 5ad73f6

Browse files
committed
feat(lib): add property untouched to type Control
1 parent f622d25 commit 5ad73f6

File tree

4 files changed

+78
-1
lines changed

4 files changed

+78
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ const nameControl = formsManager.getControl<string>('onboarding', 'name');
149149
touched: boolean,
150150
pristine: boolean,
151151
pending: boolean,
152+
untouched: boolean,
152153
}
153154
```
154155

projects/ngneat/forms-manager/src/lib/builders.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export function buildValue(control: Partial<AbstractControl>): Control {
8787
touched: control.touched,
8888
pristine: control.pristine,
8989
pending: control.pending,
90+
untouched: control.untouched,
9091
};
9192

9293
if (control instanceof FormGroup || control instanceof FormArray) {

0 commit comments

Comments
 (0)