Complex Array-Based Reactive Forms Made Easier w/ This Trick | Yaakov Chaikin | Lightning Talks 2021
Array-based Reactive forms are great. However, what if your array item is itself a FormGroup? Now, add the requirement to sort that array of FormGroups. How do you keep track of the original data? What if you want to have an easy way to grab some piece of original data to display right along with one of the FormArray's control? What if you want to "reset" the original data with ease? Use this trick to always have the original data associated with the correct FormGroup or FormControl without having to introduce new structures into your code (like another associate array that you have to keep in sync with your FormArray).
Learn the best ways to build reliable web applications, write quality code, choose scalable architectures, and create effective automated tests at the Reliable Web Summit this August 26-27, 2021. Powered by the team at ng-conf.
Get your ticket 👉 https://reliablewebsummit.com/
ng-conf is a multi-day Angular conference focused on delivering the highest quality training in the Angular JavaScript framework. 1000's of developers from across the globe join together to attend talks and workshops by the Angular team and other community experts.
Follow us on twitter https://twitter.com/ngconf
Official Website: https://www.ng-conf.org/