Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- initGroup() {
- let rows = this.addForm.get('rows') as FormArray;
- rows.push(this.fb.group({
- ingredient_id: ['', Validators.required],
- unit_price: new FormControl({ value: '', disabled: true }, Validators.required),
- quantity: ['', Validators.required],
- }))
- }
Add Comment
Please, Sign In to add comment