How to use the @ngxs/form-plugin.UpdateForm function in @ngxs/form-plugin

To help you get started, we’ve selected a few @ngxs/form-plugin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xmlking / ngx-starter-kit / libs / chat-box / src / lib / components / text-to-speech-preferences / text-to-speech-preferences.component.ts View on Github external
reset() {
    this.store.dispatch(
      new UpdateForm({
        path: 'chatbox.voiceForm',
        value: {
          voice: this.voices[48],
          volume: 1,
          rate: 1,
          pitch: 1,
        },
        dirty: false,
        status: 'VALID',
        errors: {},
      }),
    );
  }
}