angular/packages
Dylan Hunn f490c2de4e feat(forms): support negative indices in FormArray methods. (#44848)
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
2022-01-28 16:58:29 +00:00
..
animations refactor(animations): change errors type from any to string (#44726) 2022-01-18 15:52:05 -08:00
bazel refactor(compiler): pass rootDir to tsickle (#44768) 2022-01-20 11:16:35 -08:00
benchpress build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
common Revert "feat(common): add injector input to ngTemplateOutlet (#44761)" (#44807) 2022-01-24 12:22:22 -08:00
compiler fix(compiler-cli): Handle ng-template with structural directive in indexer (#44788) 2022-01-25 14:15:44 -08:00
compiler-cli refactor(compiler-cli): Tolerate source span errors in indexer (#44825) 2022-01-27 09:20:09 -08:00
core feat(router): Add Route.title with a configurable TitleStrategy (#43307) 2022-01-27 22:02:33 +00:00
docs refactor: fix various typos across different packages (#44523) 2022-01-07 18:11:10 +00:00
elements refactor(elements): remove the createCustomEvent function (#44703) 2022-01-13 18:26:54 +00:00
examples test: clean up more entryComponents usages (#44561) 2022-01-06 18:36:22 +00:00
forms feat(forms): support negative indices in FormArray methods. (#44848) 2022-01-28 16:58:29 +00:00
language-service fix(compiler-cli): Handle ng-template with structural directive in indexer (#44788) 2022-01-25 14:15:44 -08:00
localize refactor: fix various typos across different packages (#44523) 2022-01-07 18:11:10 +00:00
misc/angular-in-memory-web-api release: bump angular-in-web-memory-api package to 0.13.0 (#44313) 2021-11-30 14:12:50 -05:00
platform-browser fix(core): consistently use namespace short name rather than URI (#44766) 2022-01-21 11:19:30 -08:00
platform-browser-dynamic docs: deprecate CachedResourceLoader and RESOURCE_CACHE_PROVIDER symbols (#44749) 2022-01-19 09:42:40 -08:00
platform-server fix(core): consistently use namespace short name rather than URI (#44766) 2022-01-21 11:19:30 -08:00
private/testing test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
router feat(router): Add Route.title with a configurable TitleStrategy (#43307) 2022-01-27 22:02:33 +00:00
service-worker feat(service-worker): add cacheOpaqueResponses option for data-groups (#44723) 2022-01-24 14:51:59 -08:00
upgrade refactor(animations): Remove unnecessary IE specific code (#44686) 2022-01-12 20:43:23 +00:00
zone.js build: lock file maintenance (#44735) 2022-01-27 21:51:28 +00:00
BUILD.bazel build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-legacy-saucelabs.json build: bundle spec files for saucelabs legacy job (#44281) 2021-11-30 11:56:04 -05:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsec-exemption.json build: Enable tsec checks for critical packages. (#43108) 2021-09-13 14:45:57 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT