mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This new feature allows negative indices to wrap around from the back, just like ES2021 `Array.at`. In particular, the following methods accept negative indices, and behave like corresponding Array methods: * `FormArray.at(index)`: behaves the same as `Array.at(index)` * `FormArray.insert(index, control)`: behaves the same as `Array.splice(index, 0, control)` * `FormArray.setControl(index, control)`: behaves the same as `Array.splice(index, 1, control)` * `FormArray.removeAt(index, control)`: behaves the same as `Array.splice(index, 1)` Previous work in #44746 and #44631 (by @amitbeck). Issue #44642. Co-authored-by: Amit Beckenstein <amitbeck@gmail.com> PR Close #44848 |
||
|---|---|---|
| .. | ||
| BUILD.bazel | ||
| directives_spec.ts | ||
| form_array_spec.ts | ||
| form_builder_spec.ts | ||
| form_control_spec.ts | ||
| form_group_spec.ts | ||
| reactive_integration_spec.ts | ||
| template_integration_spec.ts | ||
| util.ts | ||
| validators_spec.ts | ||
| value_accessor_integration_spec.ts | ||