https://github.com/angular/angular

sort by:
Revision Author Date Message Commit Date
77504f1 release: cut the v17.0.0-next.0 release 16 August 2023, 17:33:53 UTC
72beab0 docs: release notes for the v16.2.1 release 16 August 2023, 17:24:47 UTC
6145cc1 refactor(core): Ensure hydration cleanup runs in the Angular zone (#51321) Hydration cleanup needs to run in the Angular zone so that change detection will run. PR Close #51321 15 August 2023, 23:02:06 UTC
6791f41 docs(router): Clarify how to clear secondary routes (#51376) The example for clearing secondary outlets currently only works because the named outlet appears at the root of the application's route config. If developers follow this example with an outlet that is not at the root level, they will not be able to close the outlet. This commit updates the example to provide a more robust way of clearing the outlet from the activated outlet component as well as providing a warning about how the commands are applied. Lastly, there is a small bit of guidance provided for developers who might want to explore the ability to close an outlet from any location in the app, without needing to be aware of the activated route. An example of this can be found here: https://stackblitz.com/edit/close-outlet-from-anywhere resolves #51373 resolves #13523 PR Close #51376 15 August 2023, 22:43:17 UTC
bcc3c43 refactor(core): update TestBed to handle async component metadata (#51182) This commit updates TestBed to wait for async component metadata resolution before compiling components. Async metadata is added by the compiler in case a component uses defer blocks, which contain deferrable symbols. PR Close #51182 15 August 2023, 18:32:09 UTC
c41a195 refactor(compiler): apply component metadata asynchronously when defer blocks are present (#51182) This commit updates compiler logic to generate the `setClassMetadataAsync` calls for components that used defer blocks. The `setClassMetadataAsync` function loads deferrable dependencies and invokes the `setClassMetadata` synchronously once everything is loaded. This change is needed to avoid eager references to deferrable symbols in component metadata in generated code. PR Close #51182 15 August 2023, 18:32:09 UTC
75561c9 docs: add new UI library resource from the Tailwind CSS ecosystem (#50976) PR Close #50976 15 August 2023, 18:29:39 UTC
328b361 docs(common): revert format date_pipe (#51359) PR Close #51359 15 August 2023, 17:06:47 UTC
200a264 docs(common): add new date format example to documentation (#51359) PR Close #51359 15 August 2023, 17:06:47 UTC
422d0d5 refactor(compiler): handle deferred when trigger with a pipe (#51368) Fixes that we weren't processing `when` conditions correctly which led to a compilation error when a pipe is used inside the expression. PR Close #51368 15 August 2023, 17:03:59 UTC
17c6ad7 docs: Add usage information to `HttpInterceptorFn` (#51236) Simple doc addendum PR Close #51236 15 August 2023, 17:02:43 UTC
83b7082 docs: Improve host binding docs (#51326) This commit adds the mention of the support of styles/classes/attributes in host bindings. fixes # 44296 PR Close #51326 15 August 2023, 16:54:14 UTC
2174351 docs: add the doc type attribute (#51332) PR Close #51332 15 August 2023, 16:53:05 UTC
3348f88 docs: Add precisions about static/dynamic queries. (#51146) The table is mostly copied from guide/migration-dynamic-flag. Fixes #51142 PR Close #51146 15 August 2023, 16:52:04 UTC
d4ca651 docs(docs-infra): fix minor typo in standalone-migration.md (#51370) PR Close #51370 15 August 2023, 16:37:46 UTC
be3edad refactor: add `readonly` to public `InjectionToken` types (#51125) We enabled a lint rule internally to require that multi-provided `InjectionToken`s have a `readonly` array type, the tokens in this PR do not follow this rule and are causing lint violations. Fixes #51124 PR Close #51125 15 August 2023, 00:17:35 UTC
93675dc feat(core): conditional built-in control flow (#51346) Initial PoC of the built-in control flow support. The goal is to unblock compiler work. PR Close #51346 15 August 2023, 00:16:39 UTC
6a60a29 docs: Fix Promise.then wrong parameter (#51322) Removed the second wrong parameter from the `Promise.then()` method in the doc. PR Close #51322 14 August 2023, 22:27:37 UTC
ccf32f6 build: update pullapprove (#51360) update pullapprove to remove self from unavailable list PR Close #51360 14 August 2023, 22:12:27 UTC
3b1c1b9 docs: Add Missing SSR integrity marker error doc page (#51340) This commit adds an error doc page for error 507 : Missing SSR content integrity marker. PR Close #51340 14 August 2023, 21:39:25 UTC
5a2b768 docs: Add CDN Optimization section to hydration guide (#51355) This adds a section to cover the case of CDNs that have optimizations that will break both Angular and Hydration by stripping comment nodes. PR Close #51355 14 August 2023, 21:31:09 UTC
ebd217d Revert "refactor(core): remove class type check when clearing cache in deps tracker (#51293)" (#51358) This reverts commit a9f609e75cc745a66e21723c7f02d3c10955d375. PR Close #51358 14 August 2023, 20:48:47 UTC
b1f0fc9 Revert "refactor(core): enabled using deps tracker in JIT compilation (#51293)" (#51358) This reverts commit bc55d82eb90bdd2dfd95d961d6eaa6ef3dc162a0. PR Close #51358 14 August 2023, 20:48:47 UTC
b0ea81d Revert "refactor(core): kill circular deps by moving scope runtime functions to a new scope.ts file (#51309)" (#51358) This reverts commit 45105555da564b93b26c9d7fcab0539c1eb57e1c. PR Close #51358 14 August 2023, 20:48:47 UTC
b297ea7 Revert "refactor(core): allow empty raw import info for standalone components in the runtime deps tracker (#51309)" (#51358) This reverts commit 8156128863a9865988245db44b9655c0b9f2c518. PR Close #51358 14 August 2023, 20:48:47 UTC
32d30f2 Revert "refactor(core): more accurate types for standalone component imports in deps tracker (#51309)" (#51358) This reverts commit e7ea016e00cc1c10b6530f06ff66a53bb20fa25d. PR Close #51358 14 August 2023, 20:48:47 UTC
ee73d18 Revert "refactor(core): implement runtime logic to compute component dependencies in local compilation mode (#51309)" (#51358) This reverts commit f7cfc3b8fa2c2b2ef0bc2d4086edce70a17944bf. PR Close #51358 14 August 2023, 20:48:47 UTC
f7cfc3b refactor(core): implement runtime logic to compute component dependencies in local compilation mode (#51309) The runtime `ɵɵsetNgModuleScope` is modified to accept raw scope info as passed to it in local compilation mode. The runtime further registers the ng-module in the deps tracker. Then the runtime `ɵɵgetComponentDepsFactory` is implemented to use the deps tracker to get the component dependencies which leads to a valid and working Angular code. PR Close #51309 14 August 2023, 15:58:47 UTC
e7ea016 refactor(core): more accurate types for standalone component imports in deps tracker (#51309) The standalone components import as passed to the deps tracker will be the raw import, i.e., it is either a Type or a module with providers or a factory of these. So we use the existing type `RawScopeInfoFromDecorator` for these imports instead of the current one to be more realistic. PR Close #51309 14 August 2023, 15:58:47 UTC
8156128 refactor(core): allow empty raw import info for standalone components in the runtime deps tracker (#51309) The current logic requires that standalone component always provide an array of raw imports. But such array could be dropped from the downstream tools if the component has no imports. So it is more natural to allow undefined raw imports for standalone components and treat it as empty array. PR Close #51309 14 August 2023, 15:58:47 UTC
4510555 refactor(core): kill circular deps by moving scope runtime functions to a new scope.ts file (#51309) This refactoring is needed for next commit not to produce circular deps as we start using the `depsTracker` inside `ɵɵsetNgModuleScope`. The runtime `ɵɵsetComponentScope` is not needed to move but it moved to the new file just for consistency sake. PR Close #51309 14 August 2023, 15:58:46 UTC
bc55d82 refactor(core): enabled using deps tracker in JIT compilation (#51293) This change simply flip the flag which enables using the deps tracker in JIT compilation (the logic is already implemented in a previous PR). Some tests which depend on the old JIT implementation (e.g., patching the scope info into the type) are modified accordingly. PR Close #51293 14 August 2023, 15:57:32 UTC
a9f609e refactor(core): remove class type check when clearing cache in deps tracker (#51293) Using verification helpers such as `isComponent` may trigger JIT compilation. Now in some tests such compilation is made purposely to fail, and so in such cases any reference to the `depsTracker.clearScopeCacheFor` method will cause the exception to be thrown earlier than expected which results in teh test failure. Such scenario is the case in the next commit when we enable using the deps tracker in the jit compilation. Note that such failure is only for the framework tests and is a very edge case. The tests in downstream apps will not lead to such scenario of failure at all. PR Close #51293 14 August 2023, 15:57:32 UTC
f14d0d7 docs(core): Fix minor typo in comment of injector_compatibility.ts (#51324) PR Close #51324 14 August 2023, 15:56:28 UTC
0bb4361 docs(docs-infra): Fix minor typos in dependency-injection-context.md (#51324) PR Close #51324 14 August 2023, 15:56:28 UTC
12dbe1a ci: migrate aio jobs to GHA (#51071) Migrate aio presubmit and deploy jobs to use Github Actions PR Close #51071 14 August 2023, 15:55:30 UTC
8693627 docs: update @self() decorator explanation (#51342) PR Close #51342 13 August 2023, 23:33:16 UTC
5212b47 refactor(compiler): introduce defer trigger instructions (#51315) Adds the logic for generating the instructions for the various deferred triggers. PR Close #51315 11 August 2023, 13:55:13 UTC
79f9d49 refactor(compiler): introduce defer block instructions (#51315) Adds the logic for generating `{#defer}`, `{:placeholder}`, `{:loading}` and `{:error}` block instructions in the compiler. PR Close #51315 11 August 2023, 13:55:13 UTC
151b04f refactor(compiler): add method for generating template instructions (#51315) Moves the logic for creating a `ɵɵtemplate` instruction into a separate method so that it can be reused for `defer` blocks. PR Close #51315 11 August 2023, 13:55:13 UTC
f3f97f0 docs: update Angular CLI help [main] (#51325) Updated Angular CLI help contents. PR Close #51325 11 August 2023, 13:22:03 UTC
f67812c release: switch the next branch to v17.0.0-next.0 11 August 2023, 13:19:46 UTC
b2661fe docs(docs-infra): Hide decorator option row if empty. (#51327) In case where the decorator option has no description nor usageNotes, we can hide that row. PR Close #51327 11 August 2023, 13:07:38 UTC
464b458 build: update all non-major dependencies (#51161) See associated pull request for more information. PR Close #51161 10 August 2023, 23:28:18 UTC
36b180a refactor(compiler): implement conditional block AST (#51299) Adds the AST for `if`, `else if` and `else` blocks. PR Close #51299 10 August 2023, 20:48:55 UTC
4424920 refactor(compiler): implement for block AST (#51299) Adds the AST for `for` and `empty` blocks. PR Close #51299 10 August 2023, 20:48:55 UTC
31c6c5e refactor(compiler): implement switch block AST (#51299) Adds the AST for `switch`, `case` and `default` blocks. PR Close #51299 10 August 2023, 20:48:55 UTC
4e22a39 fix(router): Apply named outlets to children empty paths not appearing in the URL (#51292) Empty path routes are effectively 'passthrough' routes that do not appear in the URL. When these exist in the route tree, we do not want to apply named outlet commands to that tree location. Instead, we skip past this location in the tree, effectively squashing/removing this passthrough route from the tree. fixes #50356 PR Close #51292 10 August 2023, 16:18:30 UTC
b07266d ci: migrate framework tests to GHA (#51101) Migrate framework presubmit test job to use Github Actions PR Close #51101 10 August 2023, 00:36:23 UTC
1a56763 docs: add legend tag to fieldset (#51259) PR Close #51259 10 August 2023, 00:18:38 UTC
79b3327 docs: Correct statement about app.module.ts generation with --standalone flag (#51307) The documentation incorrectly stated that the app.module.ts file is generated when the --standalone flag is used. This is not the case, and the documentation should accurately reflect the behavior. Closes #51306 PR Close #51307 10 August 2023, 00:16:49 UTC
53687ef docs: release notes for the v16.2.0 release 09 August 2023, 21:06:04 UTC
05f639f docs: release notes for the v16.1.9 release 09 August 2023, 20:52:55 UTC
dca6d6e refactor: add `dgp1130` to DevTools PullApprove config (#51301) DevTools falls under Angular Tooling and I'll probably be reviewing future PRs for the extension. PR Close #51301 09 August 2023, 17:19:25 UTC
f92f69f docs: Add after*Render to Component Lifecycle guide (#51291) PR Close #51291 09 August 2023, 17:18:27 UTC
1eda1bd refactor(compiler-cli): ctor dependencies in local compilation mode (#51089) Ctor deps are added to the fctory function for all the angular classes: NgModule, Component, Pipe, Directive and Injectable PR Close #51089 08 August 2023, 20:58:48 UTC
f8c2a0d refactor(core): add an empty implementation for getComponentDepsFactory runtime (#51089) An empty runtime is added just to make the local compiled angular files valid to run. A separate PR will implement the runtime in the right way using the deps tracker. PR Close #51089 08 August 2023, 20:58:48 UTC
827e10a refactor(compiler): add a factory for component dependencies in local compilation mode (#51089) A factory generator function called "i0.ɵɵgetComponentDepsFactory" is added to generate a factory function for component dependencies. This function will use the deps tracker to calculate the component's dependencies. For standalone components the component imports (if exists) will be passed to this function. Alternatively this function can grab the imports directly from the decorate, but such extraaction needs some runtime logic which overlapps with what the trait compiler is doing. So better to pass the imports directly to this function at compile time. PR Close #51089 08 August 2023, 20:58:48 UTC
e26080b refactor(compiler-cli): ng module injector compilation in local mode (#51089) In local mode the compiler combines the raw imports and exports and pass them to the injector definition as the imports field. It is not possible to filter out ng modules at compile time though, and it will be done in runtime. Unit tests also added, and since that was the first time adding tests for local compilation some tweaks had to be made in order to disable diagnostics in local compilation mode in order for tests to run (such situation is also the case in real compilation where we ignore all teh diagnostics basically) PR Close #51089 08 August 2023, 20:58:48 UTC
91ea1ba build: update @angular/ng-dev (#51253) Update @angular/dev to the latest version PR Close #51253 08 August 2023, 20:58:04 UTC
3a647a5 docs: Instead of CanActivateFn, CanActivateChildFn appears in CanActivateFn docs (#51283) A minor error is present within the documentation. Specifically, in the documentation for the CanActivateFn function, a reference is made to the CanActivateChildFn function. However, it appears that the CanActivateChildFn function is not utilized or referenced elsewhere in the documentation of CanActivateFn. PR Close #51283 08 August 2023, 17:40:52 UTC
10bab47 refactor(animations): remove unecessary interface (#50662) `Animation` is provided by `lib.dom`. PR Close #50662 07 August 2023, 16:26:22 UTC
6a7c1ab refactor(core): migrate JIT to use deps tracker behind a flag (#51122) The current change is done behind a flag which is set to false. So no change in code path took place here. In a followup PR the flag is changed to true which will make the actual change. PR Close #51122 07 August 2023, 16:25:27 UTC
55965cb fix(core): handle hydration of view containers for root components (#51247) For cases when a root component also acts as an anchor node for a ViewContainerRef (for example, when ViewContainerRef is injected in a root component), there is a need to serialize information about the component itself, as well as an LContainer that represents this ViewContainerRef. Effectively, we need to serialize 2 pieces of info: (1) hydration info for the root component itself and (2) hydration info for the ViewContainerRef instance (an LContainer). Each piece of information is included into the hydration data (in the TransferState object) separately, thus we end up with 2 ids. Since we only have 1 root element, we encode both bits of info into a single string: ids are separated by the `|` char (e.g. `10|25`, where `10` is the ngh for a component view and 25 is the `ngh` for a root view which holds LContainer). Previously, we were only including component-related information, thus all the views in the view container remained dehydrated and duplicated (client-rendered from scratch) on the client. Resolves #51157. PR Close #51247 07 August 2023, 16:24:26 UTC
4fe1813 refactor(core): remove unnecessary import for custom expect. (#51216) Also adding some missing assertion after `expect()` PR Close #51216 07 August 2023, 16:22:17 UTC
107be11 docs: add deprecation of `PACKAGE_ROOT_URL` (#51222) PR Close #51222 07 August 2023, 16:21:46 UTC
86acbf4 refactor(core): remove unused private provider (#51222) Both `DEFAULT_PACKAGE_URL_PROVIDER` and `ERROR_COLLECTOR_TOKEN` are unused across the project PR Close #51222 07 August 2023, 16:21:45 UTC
56566fe refactor(core): deprecate `PACKAGE_ROOT_URL` token (#51222) Usage was removed in #43884 PR Close #51222 07 August 2023, 16:21:45 UTC
f12f906 refactor(core): introduce LView and LContainer utility functions (#51191) This refactoring adds utility functions to add / remove LView from LContainer. Those utils are preparation for the control flow and defer work. Existing code was refactored to use the new utility functions and avoid any code duplication. PR Close #51191 04 August 2023, 20:00:44 UTC
0a38dc3 refactor(core): throw an error when hydration marker is missing from DOM (#51170) non-destructive hydration expects the DOM tree to have the same structure in both places. With this commit, the app will throw an error if comments are stripped out by the http server (eg by some CDNs). fixes #51160 PR Close #51170 04 August 2023, 15:31:49 UTC
6d05a68 docs: add title tag to index file (#51266) PR Close #51266 04 August 2023, 15:29:49 UTC
526e215 docs: fix missing space after full stop (#51252) Fixes #51250 PR Close #51252 04 August 2023, 15:28:34 UTC
6f506cd refactor(compiler): drop regular imports when symbols can be defer-loaded (#51171) This commit updates the logic to drop regular imports when all symbols that it brings can be defer-loaded. The change ensures that there is no mix of regular and dynamic imports present in a source file. PR Close #51171 04 August 2023, 15:28:07 UTC
b1f9609 refactor(compiler): correctly identify lazy directives and pipes used after a nested defer block (#51262) Fixes that if a directive/pipe is used after a nested `defer` block, we weren't tracking it as lazy anymore. This was due to the fact that we were resetting the `isInDeferBlock` to false every time instead of the previous value. PR Close #51262 04 August 2023, 15:27:39 UTC
1045abd refactor(compiler): add more deferred validations (#51262) Adds validations for the following invalid deferred block structures: * Duplicated triggers. * Multiple `minimum` parameters on `placeholder` and `loading` blocks. * Multiple `after` parameters on `loading` blocks. PR Close #51262 04 August 2023, 15:27:39 UTC
d11548f refactor(compiler): store deferred triggers as a map (#51262) Stores the `deferred` block triggers as a map instead of an array, because triggers can't be duplicated and because having to search through an array will be inconvenient later on. I've also added a `DeferredBlock.visitAll` method to deduplicate the logic from the various visitor implementations. PR Close #51262 04 August 2023, 15:27:39 UTC
74974f8 refactor(compiler): Parse extracted class attributes (#51258) Adds logic to parse extracted class attributes into separate ExtractedAttributeOps per class in the attribute. PR Close #51258 03 August 2023, 18:34:53 UTC
d792db8 refactor(compiler): Adds a new phase for parsing extracted styles (#51258) Adds a new phase that converts previously extracted ExtractedAttributeOps representing a style attribute into individual ExtractedAttributeOps representing each of the style properties set in the style attribute. PR Close #51258 03 August 2023, 18:34:53 UTC
82009a5 refactor(compiler): Make ElementAttributes an implementation detail (#51258) Refactors ElementAttributes to be an implementation detail of the const collection phase, rather than an object that is added to all ElementOps. PR Close #51258 03 August 2023, 18:34:53 UTC
aa9223e refactor(compiler): Use ExtractedAttributeOp for const collection (#51258) Refactors the const collection phase to populate ElementAttributes from the newly added ExtractedAttributeOp. PR Close #51258 03 August 2023, 18:34:53 UTC
8b646f5 refactor(compiler): Create temporary ops during attribute extraction (#51258) Refactors the attribute extraction phase to create a new temporary op called `ExtractedAttributeOp` rather than directly populating `ElementAttributes`. PR Close #51258 03 August 2023, 18:34:52 UTC
5aeed1f docs: release notes for the v16.2.0-rc.0 release 02 August 2023, 20:23:40 UTC
e7281cc release: bump the next branch to v16.3.0-next.0 02 August 2023, 20:23:40 UTC
9d88cd8 docs: release notes for the v16.1.8 release 02 August 2023, 19:55:00 UTC
2d52d5e refactor(compiler): support safe function calls (#51100) Adds support for safe function calls in template pipeline compiler PR Close #51100 01 August 2023, 20:45:34 UTC
42caeee refactor(compiler): reuse temp vars when possible (#51100) Updates the template pipeline's temporary variables phase to reuse temporary variables within an expression. The algorithm implemented here reuses variables more aggressively than TemplateDefinitionBuilder. This change in behavior is acceptable, as it is unlikely to cause any failures, and implementing the exact behavior observed in TemplateDefinitionBuilder would be difficult. PR Close #51100 01 August 2023, 20:45:34 UTC
b8ec182 test(compiler): allow alternate expected file for template pipeline (#51100) In some cases it is not feasible to have the template pipeline produce the exact same compiled output as the TemplateDefinitionBuilder. This commit adds support to the testing infrastructure to have different expected output files for each. This option should be used sparingly, as we want the output to be as close as possible. PR Close #51100 01 August 2023, 20:45:34 UTC
e53d4ec feat(core): add afterRender and afterNextRender (#50607) Add and expose the after*Render functions as developer preview PR Close #50607 01 August 2023, 20:02:27 UTC
8913d3e docs: fix warning about an unknown decorator (#51237) dgeni was complaning about an unknown decorator (`@Input`) PR Close #51237 01 August 2023, 20:00:53 UTC
d86e637 docs: add lang attribute to html files (#51235) PR Close #51235 01 August 2023, 19:16:44 UTC
388d1db docs: add the title tag (#51233) PR Close #51233 01 August 2023, 19:15:11 UTC
4602545 refactor(core): remove useless hack (#51224) This hack is remnant of the Ivy migration. PR Close #51224 01 August 2023, 19:12:52 UTC
d81d125 refactor(core): Remove dead unit test code (#51223) This code is duplicated but unused. PR Close #51223 01 August 2023, 19:10:57 UTC
9d59764 refactor(core): createInjector is a private function (#51221) `createInjector` is not public. PR Close #51221 01 August 2023, 19:10:20 UTC
737ed23 refactor(core): removing reflect-metadata from symbol tests. (#51217) We were not reyling on it anymore. PR Close #51217 01 August 2023, 19:09:25 UTC
a871e23 docs: remove duplicate words. (#51215) Using the `\b(\w+)\s+\1\b` we can find duplicate word. Let's remove them. PR Close #51215 01 August 2023, 19:08:33 UTC
2274d15 docs: updated the doc files (#51204) PR Close #51204 01 August 2023, 19:07:21 UTC
a248307 docs: fix typos (#51201) PR Close #51201 01 August 2023, 19:04:31 UTC
6691c49 docs: add lang attributes to the files (#51200) PR Close #51200 01 August 2023, 18:58:44 UTC
584a32d docs: add the title tag (#51199) PR Close #51199 01 August 2023, 18:54:36 UTC
back to top