This project is mirrored from https://github.com/angular/angular.git.
Pull mirroring updated .
- Nov 10, 2022
-
-
Andrew Kushnir authored
-
Andrew Scott authored
* Update extractedUrl documentation to point to the correct extract method * Remove authService.redirectUrl from tour of heroes (it's not used anywhere) PR Close #48009
-
Alan Agius authored
This commit adds `zone.js` version `0.12.x` as a valid peer dependency PR Close #48002
-
- Nov 09, 2022
-
-
Andrew Kushnir authored
This commit updates the logic related to the attribute and property binding rules for <iframe> elements. There is a set of <iframe> attributes that may affect the behavior of an iframe and this change enforces that these attributes are only applied as static attributes, making sure that they are taken into account while creating an <iframe>. If Angular detects that some of the security-sensitive attributes are applied as an attribute or property binding, it throws an error message, which contains the name of an attribute that is causing the problem and the name of a Component where an iframe is located. BREAKING CHANGE: Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings. PR Close #47964
-
Angular Robot authored
See associated pull request for more information. PR Close #47992
-
Andrew Scott authored
This commit updates various router docs to use the functional style guards instead of the `@Injectable` style. PR Close #47989
-
Alex Castle authored
Move the old image-directive-setup.md documentation page to be a section on the main image-directive.md docs page PR Close #47990
-
Dylan Hunn authored
I recently checked in a new error guide. The corresponding page must have a leading zero because it is a runtime error. Otherwise links to this error guide will be invalid. PR Close #47991
-
Andrew Scott authored
This moves a redirect test to be grouped with other redirect tests. PR Close #47993
-
- Nov 08, 2022
-
-
Dylan Hunn authored
[A Github issue](https://github.com/angular/angular/issues/43821) about an arcane-sounding Forms error is one of the repo's top-ten most visited pages. This converts the error to `RuntimeErrorCode` and adds a dedicated guide to explain how to solve it. PR Close #47969
-
Kristiyan Kostadinov authored
Fixes that we were calling `createRenderer` even though we had one already. This likely wasn't a performance issue since the renderer factory caches the renderer, but it's still better to reuse it to avoid confusion in the future. Fixes #47980. PR Close #47981
-
Matthieu Riegler authored
Since the merge of `RouterLinkWithHref` into `RouterLink` there is no need for a complex selector. PR Close #47941
-
Andrew Scott authored
The public API for enabling this option has already been removed. This change updates the internal Router code to not include any logic to support it. PR Close #47933
-
Paul Gschwendtner authored
The caretaker note label has been renamed to the new standardized label name. This commit updates the ng-dev caretaker check configuration to account for this. Also the merge assistance queue query is updated to only show PRs marked as ready for merge. Other PRs with just a caretaker note should not be of interest for the caretaker yet. PR Close #47987
-
Alan Agius authored
This commit updates the polyfills section in the browsers support guide. The `polyfills.ts` is no longer generated in version 15+ PR Close #47975
-
- Nov 05, 2022
-
-
Albert Szekely authored
fix(router): fix redirectTo on named outlets - resolves #33783 PR Close #47927
-
Andrew Scott authored
Due to being only 1 letter away from `provideRouter`, it is quite possible that developers may accidentally use `provideRoutes` rather than `provideRouter` in the `boostrapApplication` function. This change will warn developers when `provideRoutes` is used without the `Router`. PR Close #47896
-
Andrew Scott authored
This function is too similar in name to the new `provideRouter` and can lead to misconfiguring the router. The function itself is just a small wrapper around `{provide: ROUTES, multi: true, useValue: routes}`. It is rarely necessary to provide routes in this way. The harm `provideRoutes` will cause due to being only 1 letter away from `provideRouter` vastly outweighs the benefit of a slightly shorter provider. PR Close #47896
-
- Nov 04, 2022
-
-
Alex Rickabaugh authored
This rename reflects what the function actually does. Although the intention is still not to have two different interceptor mechanisms, that is now communicated in the docs for the function instead of in its name. Fixes #47764 PR Close #47901
-
Alex Rickabaugh authored
This commit adds documentation and API tagging for `provideHttpClient` and the `with*` feature functions. PR Close #47901
-
Doug Parker authored
This configures CI to run all the tests and report all the failures instead of aborting after the first one. PR Close #47958
-
Alan Agius authored
This is to push up the page in search results when searching for these terms. Ex: currently when searching using the term `test` this page is displayed at the middle of the results. PR Close #47953
-
Peter Scriven authored
PR Close #47952
-
Alan Agius authored
This section is unnecessary given that all is needed for the user is to run `ng test`, and is also tricky to maintain (Node was hard coded to v14 still). We have no mechanism of testing or verifying these setups, and we have no motivation to do so. Users should see their CI providers documentation Any preconfigured Node setup is going to suggest `ng test`, which should "just work" for Angular. PR Close #47940
-
Alan Agius authored
In version 15, the Angular CLI will no longer generate a `karma.conf.js` by default. This commit updates the testing document to include an example of how to include a custom `karma.conf.js`. Also, we update several parts of the documentation which were outdated. PR Close #47940
-
Andrew Kushnir authored
This commit updates the error message thrown by the NgOptimizedImage directive, when it detects a situation when inputs change after initial rendering. The list of inputs was also updated to include all inputs added recently. PR Close #47926
-
Alan Agius authored
This redirect is broken as this page no longer exists. PR Close #47929
-
Markus Eckstein authored
PR Close #47876
-
Alan Agius authored
These changes include - Remove the usage of `enableProdMode` - Remove `test.ts`, `polyfills.ts`, `karma.conf.js` and environment files which are no longer generated by default PR Close #47904
-
Alan Agius authored
Currently there are 3 pages for analytics gathering information. Most of the information is duplicate. With this change we remove the duplicate pages and outdated content to reflect the changes in version 15. PR Close #47840
-
abergquist authored
Made code appear better and resolved some minor grammatical opportunities/issues. PR Close #47336
-
Andrew Kushnir authored
-
Andrew Kushnir authored
Revert "fix(core): hardening rules related to the attribute order on iframe elements (#47935)" (#47961) This reverts commit d4b3c0b4. PR Close #47961
-
- Nov 02, 2022
-
-
Andrew Kushnir authored
This commit updates the logic related to the attribute order on iframes and makes the rules more strict. There is a set of iframe attributes that may affect the behavior of an iframe, this change enforces that these attributes are applied before an `src` or `srcdoc` attributes are applied to an iframe, so that they are taken into account. If Angular detects that some of the attributes are set after the `src` or `srcdoc`, it throws an error message, which contains the name of ann attribute that is causing the problem and the name of a Component where an iframe is located. In most cases, it should be enough to change the order of attributes in a template to move the `src` or `srcdoc` ones to the very end. BREAKING CHANGE: Existing iframe usages may have `src` or `srcdoc` preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings. PR Close #47935
-
- Nov 01, 2022
-
-
mgechev authored
PR Close #47910
-
Kristiyan Kostadinov authored
`AnimationRendererFactory` maintains a map between a renderer delegate and the animations renderer it corresponds to, but the renderers are never removed from the map. This leads to memory leaks when used with the `ShadowDom` view encapsulation, because the specific renderer keeps a references to its shadow root which in turn references all the elements in the view. These changes resolve the leak by clearing the reference when the animations renderer is destroyed. Fixes #47892. PR Close #47903
-
Alex Rickabaugh authored
This commit updates the standalone components guide on AIO to showcase the new `provideRouter` API. Previously the guide demonstrated configuring the router via `importProvidersFrom(RouterModule.forRoot(...))`. A new section was added to ensure `importProvidersFrom` was still shown in an example. PR Close #47902
-
Paul Gschwendtner authored
No longer maintains a separate tsconfig for the Bazel package. This seems to be a legacy artifact back when ngc-wrapped was put into GitHub. We now use the canonical repository Bazel tsconfig. This commit also fixes all strictness-related errors and makes ngc-wrapped compatible. PR Close #47893
-
Paul Gschwendtner authored
refactor(compiler-cli): update `emit` signature to support for strongly typed `emitCallback` (#47893) Currently `ngc-wrapped` mostly relies on any casts/or disabled strictness checks to be able to use `tsickle`'s emit callback and emit result merging for ngtsc. We should change this so that supertypes of `ts.EmitResult` can be used in these optional callbacks- allowing us to enable strictness checks in `packages/bazel/...` too. PR Close #47893
-
- Oct 28, 2022
-
-
Virginia Dooley authored
docs: Linting corrections. Restructuring or rewording sentences to be shorter and clearer. (#47897) PR Close #47897
-