• Iterates over the top-level controls only (so if you have FormGroups / FormArrays inside, their children don’t get marked).
• Calls markAsDirty() on each control → sets the dirty flag.
• Leaves the touched flag alone.
• Does NOT update the dirty status of the parent FormGroup unless you call updateValueAndValidity() or also mark the group itself dirty.
• forEach returns undefined, so the return keyword is meaningless here.
ts
this.promotionForm.markAllAsTouched();
• Recursively walks through every descendant control, no matter how deeply nested.
• Sets the touched flag (touched = true, untouched = false).
• Automatically updates the status flags of all ancestor groups/arrays.
───────────────────────────────────────────────────────────────
If you actually wanted to “make everything dirty”
Since Angular 14 there’s a built-in helper mirroring markAllAsTouched:
• “Touched” and “Dirty” serve different UX purposes, so choose the one that matches your validation strategy.
• Your manual forEach(... markAsDirty()) only touches the first level—use markAllAsDirty() if you need the recursive behavior.
• Remove the unnecessary return if you keep the forEach version.