-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lib): add getInitialValue() function #16
feat(lib): add getInitialValue() function #16
Conversation
README.md
Outdated
@@ -353,6 +349,25 @@ export class SettingsComponent { | |||
} | |||
``` | |||
|
|||
### Set and get Initial Value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can make it short and clear. Just write the two functions without the whole explanation around it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
juste like this : ?
setInitialValue(name, value)
- Set the Initial Value
formsManager.setInitialValue('form', initialValue);
getInitialValue(name)
- Get the Initial Value or undefined if not exist.
formsManager.getInitialValue('form');
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
To be able to obtain the initial value of the form. Closes ngneat#15
6617776
to
4793d9f
Compare
Co-authored-by: Netanel Basal <NetanelBasal@users.noreply.github.com>
Co-authored-by: Netanel Basal <NetanelBasal@users.noreply.github.com>
To be able to obtain the initial value of the form.
Closes #15
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #15
What is the new behavior?
add a function to get the initial value of a form.
Does this PR introduce a breaking change?