How to use the @datorama/akita.PersistNgFormPlugin function in @datorama/akita

To help you get started, we’ve selected a few @datorama/akita 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 datorama / akita / angular / playground / src / app / stories / stories / stories.component.ts View on Github external
draft: this.builder.control(false),
      category: this.builder.control('js')
    });

    this.formKeyBased = this.builder.group({
      time: this.builder.control(''),
      tankOwners: this.builder.array([]),
      isAdmin: this.builder.control(null)
    });

    this.formRootKey = this.builder.group({
      skills: this.builder.array([]),
      someBoolean: this.builder.control(false)
    });

    this.persistForm = new PersistNgFormPlugin(this.storiesQuery, createStory).setForm(this.form);
    this.persistFormKey = new PersistNgFormPlugin(this.storiesQuery, 'config').setForm(this.formKeyBased, this.builder);
    this.persistFormRootKey = new PersistNgFormPlugin(this.storiesQuery).setForm(this.formRootKey, this.builder);
    this.storeValue = this.storiesQuery.select(state => state.akitaForm);
  }
github datorama / akita / angular / playground / src / app / stories / stories / stories.component.ts View on Github external
});

    this.formKeyBased = this.builder.group({
      time: this.builder.control(''),
      tankOwners: this.builder.array([]),
      isAdmin: this.builder.control(null)
    });

    this.formRootKey = this.builder.group({
      skills: this.builder.array([]),
      someBoolean: this.builder.control(false)
    });

    this.persistForm = new PersistNgFormPlugin(this.storiesQuery, createStory).setForm(this.form);
    this.persistFormKey = new PersistNgFormPlugin(this.storiesQuery, 'config').setForm(this.formKeyBased, this.builder);
    this.persistFormRootKey = new PersistNgFormPlugin(this.storiesQuery).setForm(this.formRootKey, this.builder);
    this.storeValue = this.storiesQuery.select(state => state.akitaForm);
  }
github datorama / akita / angular / playground / src / app / stories / stories / stories.component.ts View on Github external
category: this.builder.control('js')
    });

    this.formKeyBased = this.builder.group({
      time: this.builder.control(''),
      tankOwners: this.builder.array([]),
      isAdmin: this.builder.control(null)
    });

    this.formRootKey = this.builder.group({
      skills: this.builder.array([]),
      someBoolean: this.builder.control(false)
    });

    this.persistForm = new PersistNgFormPlugin(this.storiesQuery, createStory).setForm(this.form);
    this.persistFormKey = new PersistNgFormPlugin(this.storiesQuery, 'config').setForm(this.formKeyBased, this.builder);
    this.persistFormRootKey = new PersistNgFormPlugin(this.storiesQuery).setForm(this.formRootKey, this.builder);
    this.storeValue = this.storiesQuery.select(state => state.akitaForm);
  }