This is an open-label study to evaluate the safety, efficacy, and pharmacokinetics (PK) and pharmacodynamics (PD) of donidalorsen in pediatric participants age 2 to less than 12 years old with HAE Type I (HAE-1) or Type II (HAE-2). The study consists of 3 parts: 1) a 3-month Screening Period, 2) a one-year Treatment Period, and 3) a 3-month Post-Treatment Period.