Created
October 12, 2021 06:10
-
-
Save farithadnan/eeaa19b324ecc8cea613fd4b4420534d to your computer and use it in GitHub Desktop.
Loop for formArray
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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