angular/packages
Andrew Scott 50d7916278 feat(router): Add router configuration to resolve navigation promise on error (#48910)
With the deprecation of the configurable errorHandler in the Router, there is a missing
use-case to prevent the navigation promise from rejecting on an error. This rejection
results in unhandled promise rejections. This commit allows developers to instruct
the router to instead resolve the navigation promise with 'false', which matches
the behavior of other failed navigations.

Resolving the Promise would be the ideal default behavior. It is rare
that any code handles the navigation Promise at all and even more rare
that the Promise rejection is caught. Updating the default value for
this option should be considered for an upcoming major version.

fixes #48902

PR Close #48910
2023-12-04 21:49:35 -08:00
..
animations fix(animations): prevent the AsyncAnimationRenderer from calling the delegate when there is no element. (#52570) 2023-11-13 16:29:18 +00:00
bazel feat(core): support TypeScript 5.3 (#52572) 2023-11-09 22:56:41 +00:00
benchpress test(core): clean up unnecessary nesting in old tests (#52239) 2023-10-19 09:26:15 -07:00
common refactor(core): replace runInContext by runInInjectionContext (#53035) 2023-11-20 12:05:00 -08:00
compiler test(compiler): Update golden partial file (#53327) 2023-12-04 14:24:21 -08:00
compiler-cli fix(compiler-cli): avoid conflicts with built-in global variables in for loop blocks (#53319) 2023-12-04 21:45:17 -08:00
core refactor(core): skip disconnected nodes while computing node path for hydration (#53317) 2023-12-04 21:44:08 -08:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
examples docs(forms): replace fb with formBuilder (#52261) 2023-10-19 09:24:39 -07:00
forms build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
language-service feat(core): support TypeScript 5.3 (#52572) 2023-11-09 22:56:41 +00:00
localize feat(core): support TypeScript 5.3 (#52572) 2023-11-09 22:56:41 +00:00
misc/angular-in-memory-web-api fix(http): Don't override the backend when using the InMemoryWebAPI (#52425) 2023-11-08 18:42:20 +00:00
platform-browser refactor(platform-browser): clean up legacy way of getting a relative path (#53097) 2023-11-27 10:59:53 +01:00
platform-browser-dynamic build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
platform-server refactor(core): skip disconnected nodes while computing node path for hydration (#53317) 2023-12-04 21:44:08 -08:00
private/testing fix(platform-server): bundle @angular/domino in via esbuild (#49229) 2023-02-28 13:34:50 -08:00
router feat(router): Add router configuration to resolve navigation promise on error (#48910) 2023-12-04 21:49:35 -08:00
service-worker build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
upgrade build: update node.js engines version to be more explicate about v20 support (#52448) 2023-10-31 14:18:36 -07:00
zone.js release: cut the zone.js-0.14.2 release (#52508) 2023-11-03 10:54:12 -07:00
BUILD.bazel build: add target to generate api manifest (#52472) 2023-11-02 11:00:59 -07:00
circular-deps-test.conf.js build: ignore type only imports/exports for circular dependency checks (#47017) 2022-08-18 12:06:09 -07:00
empty.ts
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
system.d.ts
tsconfig-build.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsconfig-legacy-saucelabs.json refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json refactor(common): Add a new platform_navigation that provides the Navigation API. (#52363) 2023-11-09 18:01:33 +00:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00: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