Seasons greetings from Datorama!

Our Akita elves have been hard at work adding tons of functionality based on your input. Here’s a list of all the new stuff we got:

🙌 Angular Forms Manager

The AkitaNgFormsManager let you sync Angular’s formGroup , formControl , and formArray, via a unique store created for that purpose. The store will hold the controls' data like values, validity, pristine status, errors, etc.

This is powerful, as it gives you the following abilities:

It will automatically save the current control value and update the form value according to the value in the store when the user navigates back to the form. It provides an API so you can query a form’s values and properties from anywhere. This can be useful for things like multi-step forms, cross-component validation and more.

The goal in creating this was to work with the existing Angular form ecosystem, and save you the trouble of learning a new API. Let’s see how it works:

As you can see, we’re still working with the existing API in order to create a form in Angular. We’re injecting the AkitaNgFormsManager and calling the upsert method, giving it the form name and the formGroup (this will work also with a single formControl or formArray ).