Skip to content

Instantly share code, notes, and snippets.

@farithadnan
Created October 12, 2021 06:10
Show Gist options
  • Save farithadnan/eeaa19b324ecc8cea613fd4b4420534d to your computer and use it in GitHub Desktop.
Save farithadnan/eeaa19b324ecc8cea613fd4b4420534d to your computer and use it in GitHub Desktop.
Loop for formArray
// Check whether the serial length is equal with the quantity
for (const control of this.productForm.controls) {
if (control.get('serialLengthCheck').value !== control.get('quantity').value) {
console.log('Total of Serial Must be Equal with Quantity!');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment