angular/packages
Andrew Scott 3974c2184e refactor(core): All views attached to application are treated as OnPush in zoneless (#55099)
This change treats all views attached to `ApplicationRef` as `OnPush`,
meaning that they have to be explicitly marked for check in order to be
refreshed when a tick happens. This prevents "accidentally" refreshing
views which have `Default` change detection as a side effect of running
change detection from an unrelated notification.

In addition, this change helps us achieve one of the big goals of the
project: that we can provide a testing experience which gives developers
more confidence that a component is zoneless-compatible. Because
`ComponentFixture` change detection is run through `ApplicationRef`
instead of `ChangeDetectorRef` when zoneless is enabled, this ensures
that the component under test has correctly been marked for check in
order to be updated. Without this, calling
`ComponentFixture.detectChanges` would allow a test to _force_ change
detection on a view when Angular would have otherwise not known that it
needed to be updated. Calling `ComponentFixture.detectChanges` on a component
which is not marked for check will now omit refreshing component view.

PR Close #55099
2024-03-29 10:42:21 -07:00
..
animations refactor: migrate animations to prettier formatting (#53977) 2024-01-19 20:08:57 +01:00
bazel feat(compiler-cli): drop support for TypeScript older than 5.4 (#54961) 2024-03-21 22:07:45 -07:00
benchpress refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
common docs: drop glossary links (#55044) 2024-03-28 13:02:50 -07:00
compiler refactor(compiler): add support for the new search element (#54945) 2024-03-29 10:01:54 -07:00
compiler-cli build: update dependency @babel/core to v7.24.3 (#55038) 2024-03-29 09:44:58 -07:00
core refactor(core): All views attached to application are treated as OnPush in zoneless (#55099) 2024-03-29 10:42:21 -07:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements refactor: migrate bazel, benchpress, elements and misc to prettier formatting (#53995) 2024-01-22 09:07:15 +01:00
examples refactor: migrate docs, examples, private, service worker and upgrade to prettier formatting (#54163) 2024-01-30 20:08:40 +00:00
forms fix(core): ComponentFixture stability should match ApplicationRef (#54949) 2024-03-27 11:01:28 -07:00
language-service fix(language-service): avoid generating TS syntactic diagnostics for templates (#55091) 2024-03-28 12:10:40 -07:00
localize build: update dependency @babel/core to v7.24.3 (#55038) 2024-03-29 09:44:58 -07:00
misc/angular-in-memory-web-api refactor: address prototype polution concern with better typing (#54286) 2024-02-06 18:38:47 +00:00
platform-browser docs: drop glossary links (#55044) 2024-03-28 13:02:50 -07:00
platform-browser-dynamic docs: drop glossary links (#55044) 2024-03-28 13:02:50 -07:00
platform-server fix(core): prevent i18n hydration from cleaning projected nodes (#54823) 2024-03-29 09:35:43 -07:00
private/testing refactor(core): properly type withBody and withHead testing helpers (#54801) 2024-03-11 08:59:55 -07:00
router refactor(router): Navigation promise should resolve false instead of null on skip (#55068) 2024-03-29 09:16:47 -07:00
service-worker docs: drop glossary links (#55044) 2024-03-28 13:02:50 -07:00
upgrade test: fix global augmentation leaking into all source files (#54650) 2024-03-06 12:34:39 +01:00
zone.js fix(zone.js): make sure fakeasync use the same id pool with native (#54600) 2024-03-28 10:30:25 -07:00
BUILD.bazel docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00: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
license-banner.txt
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
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(router): Update integration tests to cover navigation and history API (#53799) 2024-01-30 15:04:02 +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