Go to file
Alex Rickabaugh 17142a778a fix(service-worker): don't block initialization on registration (#19936)
Importing ServiceWorkerModule.register() will schedule registration of
the Service Worker inside an APP_INITIALIZER. Previously, the Promise
returned by navigator.serviceWorker.register() was returned from the
initializer function. This has the unwanted side effect of blocking
initialization until the SW is registered. Even worse, if the SW script
fails to load, this can cause the app initialization to fail.

The solution is to not return the registration promise from the
initializer function, essentially decoupling registration from the rest
of the initialization flow.

This change is not unit testable as there are no mocks/adapters yet for
navigator.serviceWorker. A future integration test should cover this case
with better fidelity.

PR Close #19936
2017-10-26 16:05:07 -04:00
.circleci build: fix `yarn install` command (`--freeze-lockfile` --> `--frozen-lockfile`) 2017-10-20 10:14:30 -07:00
.github docs: does please -> does (#18044) 2017-07-11 11:46:57 -07:00
aio fix(aio): add service worker entrypoint to aio build (#19875) 2017-10-23 19:31:42 -04:00
docs docs: add 'bazel' as an Angular component (#19346) 2017-09-28 09:28:42 -07:00
integration test: increase polyfills size upper limit in CLI integration tests 2017-09-27 17:04:24 -07:00
modules refactor(core): add a checkIndex to the compiler view nodes 2017-10-04 14:55:54 -07:00
packages fix(service-worker): don't block initialization on registration (#19936) 2017-10-26 16:05:07 -04:00
scripts fix(compiler): correctly calculate the outDir if it repeats a parts of the `rootDir`. (#19836) 2017-10-23 18:46:04 -04:00
tools feat(router): add "onSameUrlNavigation" router configuration option (#19463) 2017-10-23 20:56:53 -04:00
.bazelrc build: ngc-wrapped as a bazel worker (#18960) 2017-09-01 12:23:11 -05:00
.bowerrc chore(dgeni): clean up legacy typings bundle creation 2015-10-29 21:19:59 +00:00
.clang-format feat(tooling): Add a .clang-format for automated JavaScript formatting. 2015-04-02 08:44:34 -07:00
.editorconfig chore(.editorconfig): include markdown config 2015-01-27 00:14:48 -08:00
.gitattributes chore: force lf EOL for ts files (#11143) 2016-08-29 12:41:58 -07:00
.gitignore build(common): extract i18n locale data from cldr (#18284) 2017-08-22 15:43:04 -05:00
.mailmap build: add a Git .mailmap with my new name (#19550) 2017-10-09 14:35:30 -07:00
.nvmrc ci: bump node version to 6.9.5 and npm to 3.10.7 2017-02-02 23:28:00 -08:00
.pullapprove.yml build: add warning about changing ngtools_api2 2017-10-20 09:39:30 -07:00
.travis.yml revert: ci: use chrome stable (#18307) 2017-10-20 09:38:59 -07:00
BUILD.bazel fix(compiler): add first bazel test for `ng_module` (#19703) 2017-10-17 15:18:31 -07:00
CHANGELOG.md docs: add changelog for 5.0.0-rc.6 2017-10-25 14:49:27 -07:00
CONTRIBUTING.md docs: add service-worker to list of allowed scopes (#19875) 2017-10-23 19:31:42 -04:00
LICENSE style(docs): update copyright years (#13736) 2017-01-27 20:47:14 -08:00
README.md docs: add BrowserStack badge to README.md (#19314) 2017-09-22 13:09:18 -07:00
WORKSPACE fix(compiler): add first bazel test for `ng_module` (#19703) 2017-10-17 15:18:31 -07:00
bower.json docs: branding fixes (#14132) 2017-01-27 15:03:11 -06:00
browser-providers.conf.js build: remove required BrowserStack run as it fails with “Access denied” (#19769) 2017-10-17 15:51:40 -07:00
build.sh feat(service-worker): introduce the @angular/service-worker package (#19274) 2017-09-28 16:18:12 -07:00
gulpfile.js test(packaging): added test for source map correctness 2017-09-12 16:59:32 -04:00
karma-js.conf.js build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
package.json release: cut the 5.0.0-rc.6 release 2017-10-25 14:48:41 -07:00
protractor-e2e.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
protractor-examples-e2e.conf.js refactor: format and lint code 2016-12-12 11:30:25 -08:00
protractor-perf.conf.js refactor: add license header to JS files & format files (#12081) 2016-10-04 20:39:20 -07:00
shims_for_IE.js Revert "refactor: add license header to JS files & format files (#12035)" 2016-10-04 14:06:41 -07:00
test-events.js fix(platform-browser): run BLACK_LISTED_EVENTS outside of ngZone (#18993) 2017-09-05 15:33:22 -05:00
test-main.js feat(platform-server): provide a DOM implementation on the server 2017-08-30 17:46:16 -07:00
test.sh build: remove references to `tsc-wrapped` (#19298) 2017-09-21 13:55:52 -07:00
tslint.json build: update npm dependencies (#19328) 2017-09-22 13:20:52 -07:00
yarn.lock build: update to rxjs@5.5.2 (#19931) 2017-10-25 14:27:05 -04:00
yarn.lock.readme.md build: switch from npm to yarn (#19328) 2017-09-22 13:20:52 -07:00

README.md

Build Status CircleCI BrowserStack Status Join the chat at https://gitter.im/angular/angular Issue Stats Issue Stats npm version

Sauce Test Status

Safari (7+), iOS (7+) and IE mobile (11) are tested on BrowserStack.

Angular

Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.

Quickstart

Get started in 5 minutes.

Want to help?

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.