This project is mirrored from https://github.com/angular/angular.git.
Pull mirroring updated .
- Feb 17, 2022
-
-
Alex Rickabaugh authored
PR Close #45116
-
Renovate Bot authored
PR Close #45036
-
JiaLiPassion authored
Add integration test for `Mocha` patch from `zone.js` to verify the issue #42384 is fixed PR Close #45047
-
JiaLiPassion authored
Close #42834 In the new version fo Mocha, all global test functions are from `global` object instead of `Mocha` object. Adn the current `zone.js` Mocha patch's logic looks like this. ``` global.describe = Mocha.describe = function() { return originalMochaDescribe.apply(this, arguments); } ``` and `originalMochaDescribe` is the unpathced Mocha implementation looks like this ``` function describe() { return context.describe(...); } ``` And the `context` will finally delegate to `global.describe()`, so the current `zone.js` patch causes infinite loop. This commit will not patch function of `Mocha` object any longer. PR Close #45047
-
Aristeidis Bampakos authored
PR Close #45104
-
Yousaf Nawaz authored
correct word 'questionaire' to 'questionnaire' in Building dynamic forms guide PR Close #45103
-
AlirezaEbrahimkhani authored
fix case types guide text for more detailed guidance PR Close #45095
-
AlirezaEbrahimkhani authored
The link to complete schema, is exactly the same as the one above PR Close #45095
-
- Feb 16, 2022
-
-
zuckjet authored
In chapter internationlization at section "Deploy multiple locales" the syntax for angular.json is wrong. Close #45032 PR Close #45048
-
AlirezaEbrahimkhani authored
'an' is replaced with 'a' for the adjective 'straightforward' resolves angular#45075 PR Close #45092
-
- Feb 15, 2022
-
-
Jessica Janiuk authored
This moves all the error strings into exported functions that can be tree shaken away. PR Close #45079
-
Jessica Janiuk authored
This addresses a problem with animations e2e tests that were failing intermittently due to a missing timeout value PR Close #45083
-
mgechev authored
PR Close #45078
-
dario-piotrowicz authored
add information to the query api docs clarifying that elements with a trigger can be queried via `:leave` when their parent is leaving this exception is potentially something to be changed (see #45058) but for the time being the docs can be updated to make the users aware of such behavior PR Close #45059
-
Mina Hosseini Moghadam authored
after installing @angular/localize package, it will be placed in devDependencies object PR Close #45053
-
Patrick Cameron authored
Fix broken link in Glossary document PR Close #45068
-
Dario Piotrowicz authored
improve the aio animations guide information around elements entering and leaving, this includes, querying them, their transitions and also improvements to the animations guide live examples PR Close #44550
-
- Feb 12, 2022
-
-
markostanimirovic authored
This commit replaces deprecated `Observable.toPromise` usages with `lastValueFrom`. PR Close #45045
-
markostanimirovic authored
This commit replaces deprecated `Observable.subscribe` usages. PR Close #45046
-
- Feb 11, 2022
-
-
Renovate Bot authored
Update Angular packages to latest versions. PR Close #45040
-
- Feb 10, 2022
-
-
Srdjan Milic authored
Support for passing an error value to "throwError" method will be removed in v8 of rxjs. More info at https://rxjs.dev/api/index/function/throwError#throwerror PR Close #44985
-
dario-piotrowicz authored
the focus/interactable area for the try-it-now card is wider than necessary, reduce such width to the appropriate size PR Close #45002
-
Renovate Bot authored
PR Close #45026
-
Renovate Bot authored
Updates Angular PR Close #44981 PR Close #45027
-
Renovate Bot authored
Lock file maintenance, patch port #44993. PR Close #45027
-
- Feb 09, 2022
-
-
Renovate Bot authored
PR Close #45013
-
Renovate Bot authored
PR Close #45012
-
Amer Yousuf authored
PR Close #45014
-
Andrew Kushnir authored
fix(core): `ViewContainerRef.createComponent` should consult module injector when custom one is provided (#44966) Before Ivy, it was only possible to call the `ViewContainerRef.createComponent` function with the ComponentFactory as the first argument. An instance of a `ComponentFactory` resolved via `ComponentFactoryResolver` contained a reference to an `NgModule` where the component is declared. As a result, the component maintained a DI connection with the module injector tree (by retrieving an instance of `NgModuleRef` internally), even when the custom injector was provided (we try to find a token in a custom injector first and consult module injector after that). With Ivy, we expanded the `ViewContainerRef.createComponent` function API to support direct references to the Component classes without going through the factory resolution step. As a result, there was no connection to the NgModule that declares the component. Thus, if you provide a custom injector, this is the only injector that is taken into account. This commit updates the logic for the factory-less case to try retrieving an instance of an `NgModuleRef` using the DI tree which `ViewContainerRef` belongs to. The `NgModuleRef` instance is then used to get a hold of a module injector tree. This brings the factory-less and factory-based logic to more consistent state. Closes #44897. PR Close #44966
-
Kristiyan Kostadinov authored
In templates with several levels of nested nodes, it's common for several `elementStart`/`elementEnd` instructions to show up in a row which can be optimized away. These changes add chaining support for `elementStart`, `elementEnd`, `elementContainerStart` and `elementContainerEnd` to shave off some bytes when possible. PR Close #44994
-
Kristiyan Kostadinov authored
Previously the logic for generating chained instructions was somewhat rigid, because we had to collect all of the calls ahead of time and then call one of the chained instruction helpers. This doesn't work for something like `elementStart`, because we have to descend into other elements that could add to the chain. These changes refactor the code so that we collect the list of instructions in a flat array and we do the chaining only once at the end when we have the entire instruction set for the code block. The new approach has the advantage of being (almost) entirely configuration-based via the `CHAINABLE_INSTRUCTIONS` array and being more flexible in allowing us to chain instructions that span across elements. PR Close #44994
-
Esteban Gehring authored
PR Close #45017
-
Dylan Hunn authored
PR Close #45018
-
- Feb 08, 2022
-
-
Alan Cohen authored
PR Close #44988
-
Andrew Kushnir authored
This commit updates various places in the repo (mostly tests/examples) to drop all `.ngfactory` and `.ngsummary` imports as they are no longer needed in Ivy. PR Close #44957
-
Shai Reznik authored
to resources PR Close #44969
-
Kristiyan Kostadinov authored
When an `NgModel` is created within a `form`, it receives an `NgControl` based on its `name`, but the control doesn't get swapped out if the name changes. This can lead to problems if the `NgModel` is part of an `ngFor`, because the name can change based on its position in the list and a new control can be defined with the same name, leading us to having multiple directives pointing to the same control. For example, if we start off with a list like : ``` [0, 1, 2]; -> [NgModel(0), NgModel(1), NgModel(2)] ``` Then we remove the second item: ``` [0, 2]; -> [NgModel(0), NgModel(2)] ``` And finally, if we decide to add an item to the end of the list, we'll already have a control for index 2, causing the list to look like: ``` [0, 2, 3]; -> [NgModel(0), NgModel(2), NgModel(2)] ``` These changes fix the issue by removing the old control when the `name` of the directive changes. Fixes #38465. Fixes #37920. PR Close #40459
-
iRealNirmal authored
This commit updates the `PatternValidator` class to inherit `AbstractValidatorDirective` to make it conistent with other validators. Closes angular#42267 PR Close #44887
-
JoostK authored
For two-way-bindings that use the banana-in-a-box syntax, the compiler synthesizes an event assignment expression from the primary expression. It is valid for the primary expression to be terminated by the non-null operator, however naive string substitution is used for the synthesized expression, such that the `!` would immediately precede the `=` token, resulting in the valid `!=` operator token. The expression would still parse correctly but it doesn't implement the proper semantics, resulting in incorrect runtime behavior. Changing the expression substitution to force a space between the primary expression and the assignment avoids this mistake, but it uncovers a new issue. The grammar does not allow for the LHS of an assignment to be the non-null operator, so the synthesized expression would fail to parse. To alleviate this, the synthesized expression is parsed with a special parser flag to allow for this syntax. Fixes #36551 PR Close #37809
-
Alan Agius authored
With this change we group all the scorecard action dependencies so that Renovate opens a single PR. PR Close #44998
-