angular-docs-cn/packages
Hoel IRIS 81c2a94310 fix(service-worker): avoid uncaught rejection warning when registration fails (#30876)
Service worker API `navigator.serviceWorker.register` can fail in multiple ways.
For example, in Chrome, with an unstable network connection you can have the
following error: `An unknown error occurred when fetching the script.`

In the current state, it creates an `Uncaught (in promise) TypeError:` style of
error, which cannot be caught by the user on his own.

I think it's better to log the error over raising an error that cannot be
caught.

PR Close #30876
2019-06-07 08:46:25 -07:00
..
animations build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
bazel fix(bazel): exclude components schematics from build (#30825) 2019-06-05 21:27:46 -07:00
benchpress build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
common fix(ivy): error for empty bindings on ng-template (#30829) 2019-06-05 21:26:13 -07:00
compiler refactor(ivy): remove ɵɵelementAttribute instruction (#30640) 2019-06-05 21:29:38 -07:00
compiler-cli fix(ivy): error for empty bindings on ng-template (#30829) 2019-06-05 21:26:13 -07:00
core perf(ivy): remove check for function type in renderStringify (#30838) 2019-06-06 13:47:41 -07:00
docs
elements build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
examples test(compiler): update examples and compiler tests (#30626) 2019-05-23 10:31:32 -07:00
forms build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
http build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
language-service build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
platform-browser build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
platform-browser-dynamic build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
platform-server build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
platform-webworker build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
platform-webworker-dynamic build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
private/testing test(ivy): add onlyInIvy perf counter expectations (#30339) 2019-05-09 11:22:00 -07:00
router build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
service-worker fix(service-worker): avoid uncaught rejection warning when registration fails (#30876) 2019-06-07 08:46:25 -07:00
upgrade build: remove unreferenced tsconfig-build.json files (#30858) 2019-06-05 09:03:36 -07:00
BUILD.bazel build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871) 2019-02-28 12:06:36 -08:00
README.md
empty.ts
goog.d.ts test(ivy): add bundling test `todo_i18n` (#27420) 2018-12-04 19:59:12 -08:00
license-banner.txt build: bump year (#27880) 2019-01-11 11:15:59 -08:00
system.d.ts
tsconfig-build.json build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
tsconfig-test.json build: update to rules_typescript 0.25.1 (#28625) 2019-02-21 07:46:21 -08:00
tsconfig.json docs(service-worker): improve `SwRegistrationOptions` docs and add example (#21842) 2019-04-25 12:29:58 -07:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00

README.md

Angular

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

License: MIT