Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
formGroup.markAsPristine() Does not seem to work with igx inputs
posted

Hi Everybody! I'm struggling to figure out how to reset the state of a form after user submission. In Angular Reactive Forms, you are able to reset the form and call markAsPristine() to set the form back to its untouched state. Does ignite-ui have anything similar or has anybody else ran into this problem? I've looked through the documentation with no success.

  • 280
    Offline posted

    Hi Brandon,

    Using  Anguar's FormGroup to reset a form consisted of our controls will work the way you want.

    Here is a StackBlitz sample for your reference, based on this scenario.

    Please, let me know if you have any questions!

    Best regards,

    Hristo Popov