Commit graph

25882 commits

Author SHA1 Message Date
Jens
ca02f70c25 docs: add planned release schedule till v16 (#48485)
Add release dates for v15.1,v15.2 and v16
PR Close #48485
2022-12-14 08:43:31 -08:00
Andrew Scott
81203c6ec1 refactor(router): Add opt-in provider for upcoming router change (#47988)
This commit adds a swappable provider for an upcoming change to the
implementation of `Router#createUrlTree`. This will be a breaking change
and is planned to be included in V16.

PR Close #47988
2022-12-13 16:57:46 -08:00
Andrew Scott
cf7e4e47fc docs: Add doc page for 'textAttributeNotBinding' extended diagnostic (#48307)
Adds documentation page for `textAttributeNotBinding` extended diagnostic.

fixes #48291

PR Close #48307
2022-12-13 16:56:06 -08:00
Bob Watson
f6ac94c81c docs: edit suggestion to meet style guide (#47979)
PR Close #47979
2022-12-13 14:47:32 -08:00
lsst25
005e2ba57a docs: add a link to hierarchical-dependency-injection (#47979)
It is not clear that when we provide a service to some eagerly loaded module of an application, then that service is available for components of all eagerly loaded modules of that application. It would be better to give a link for more information at least.
PR Close #47979
2022-12-13 14:47:32 -08:00
Andrew Scott
ff84c73603 docs(core): Document invalid multi token (#48267)
Add error page for invalid multi token runtime error

PR Close #48267
2022-12-13 14:05:59 -08:00
Matthieu Riegler
279e7d4465 refactor: cleanup polyfills by importing zone.js directly in angular.json (#48380)
Since v15, polyfills can be passed directly into angular.json. Let's use this opportunity to reduce the number of unecessary files.

PR Close #48380
2022-12-13 13:37:08 -08:00
Angular Robot
d7038475ed build: update eslint dependencies to v5.46.1 (#48464)
See associated pull request for more information.

PR Close #48464
2022-12-13 13:25:00 -08:00
Lukas Matta
2e65a2bd84 fix(devtools): Replace material imports and styles (#48420)
In the #48216 Material deps were updated to v15,
but the components and modules in DevTools were not
updated to MDC nor replaced with the legacy definitions.

PR Close #48420
2022-12-13 13:22:25 -08:00
piyush132000
b05113c621 docs: updated docs removed unnecessary imports and empty methods (#48429)
Removed empty methods and unnecessary imports in files

PR Close #48429
2022-12-13 13:14:35 -08:00
BrowserPerson
2cd76e053f docs: add maria korneeva to GDE resources (#48468)
PR Close #48468
2022-12-13 13:14:06 -08:00
Angular Robot
7dda19b3f4 docs: update events (#48474)
Generated `events.json` with the latest events retrieved from the Firebase DB.

PR Close #48474
2022-12-13 13:13:16 -08:00
Andrew Scott
f58ad86e51 feat(router): Add feature provider for enabling hash navigation (#48301)
The argument against this feature:

Firstly, this isn't a navigation strategy that's very commonly desired.
Secondly, the hash strategy is a location configuration in `@angular/common`
and you can use it outside of the Router or with any custom router implementations.
So while the net effect of using the router is that it updates the URL which is
controlled by the strategy, this feature provider doesn't necessarily need to
exist in the Router. The location strategy is an application-wide configuration
and affects anything that imports `Location`.  Of course, the Router does this
in a few places but plenty of other things might as well.

The argument for this feature:

* Discoverability. While `LocationStrategy` is technically in `@angular/common`, the most
  common use-case _is_ when using it with the Router.
* Precedence in the `RouterModule.forRoot([], {useHash: true})`
* Precedence in other routing libraries (`createWebHashHistory` in VueJS
  and `HashRouter` in React, for example)
* The implementation of `withHashLocation` is much more clear than
  `useHash` was. You can look at the function and see that all it's
  doing is adding the `HashLocationStrategy` to the providers list.

resolves #48295 / #47986

PR Close #48301
2022-12-13 08:28:38 -08:00
why520crazy
abd11a6ae9 docs: add docgeni to tooling of resources list (#48061)
PR Close #48061
2022-12-12 16:26:26 -08:00
Jessica Janiuk
e0d62cb734 Revert "fix(common): Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF" (#48461)
This reverts commit ae0efb6a09.

PR Close #48461
2022-12-12 16:18:46 -08:00
dario-piotrowicz
c86484507f fix(animations): fix incorrect handling of camel-case css properties (#48436)
fix the issue of camel-case properties not being handled correctly in
state transition causing them not to be applied to the element

resolves #48246

PR Close #48436
2022-12-12 15:17:44 -08:00
Angular Robot
0b75afe9bb docs: update events (#48170)
Generated `events.json` with the latest events retrieved from the Firebase DB.

PR Close #48170
2022-12-12 15:03:04 -08:00
Yannick Baron
b39cfdd993 docs: add yannick baron to list of aio GDEs (#48390)
PR Close #48390
2022-12-12 15:01:59 -08:00
Aristeidis Bampakos
5bc502fa2c docs: modify directive composition API guide (#48439)
Add a minor change to indicate the difference from applying a directive in the template.

PR Close #48439
2022-12-12 14:58:17 -08:00
Aristeidis Bampakos
6dd7575d74 docs: fix typo in search keywords guide (#48442)
PR Close #48442
2022-12-12 14:19:58 -08:00
Aristeidis Bampakos
cc5b044cbf docs: fix typos in reviewing content guide (#48441)
PR Close #48441
2022-12-12 14:05:36 -08:00
Aristeidis Bampakos
bf91f8e8b9 docs: fix style in contributors overview guide (#48440)
PR Close #48440
2022-12-12 14:05:00 -08:00
Bob Watson
febfa15c2f docs: make "app" a suggested replacement for "application" (#48456)
This commit accommodates the recent terminology preference change
from "application" to "app" when describing what an Angular
project produces. For now, using "application" is not a blocker, but
writers should be aware of the change in terminology.

PR Close #48456
2022-12-12 13:49:06 -08:00
Bob Watson
53ab2cf867 docs: remove spell checker from vale testing until vale bug is resolved (#48456)
With vale 2.21, the spell checker style stopped working.

This commit removes the spell checker from the list of styles to allow Vale to
be used, minus the spell checker, until the bug is resolved or a workaround
can be applied.

PR Close #48456
2022-12-12 13:49:06 -08:00
Bob Watson
a6d953e145 docs: move tour of heroes tutorial to a subdirectory (#48162)
This commit prepares the documentation directories for future tutorials organized by directory.

Also, it moves the Angular Libraries topic from the Tutorials section to Developer Guides in TOC

PR Close #48162
2022-12-12 12:07:46 -08:00
Andrew Scott
e362214924 fix(common): Fix TestBed.overrideProvider type to include multi (#48424)
TestBed.overrideProvider should include `multi` support in its type. The
underlying implementation already supports it, as documented by the
tests which are currently casting the override to `any` to get around
the bad type.

PR Close #48424
2022-12-12 09:40:22 -08:00
piyush132000
10b1c2d1a6 docs: updated docs removed unnecessary imports and empty methods (#48428)
Removed empty methods and unnecessary imports in files

PR Close #48428
2022-12-12 09:39:22 -08:00
Konstantin Kharitonov
d87285c363 fix(common): Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48394)
```ts
@NgModule({
  imports: [RouterModule.forRoot([{path: '/enigma', component: EnigmaComponent}])],
  providers: [{provide: APP_BASE_HREF, useValue: '/en'}]
})
export class AppModule {}
```

Navigating to `/enigma` will redirect to `/en/igma` not to `/en/enigma` as it expects

Fixes: #45744

PR Close #48394
2022-12-12 09:37:35 -08:00
Andrew Scott
caa1ad000e docs(router): Update ROUTES docs to not point to provideRoutes (#48417)
provideRoutes is deprecated in favor of the ROUTES token directly
for complex situations where it's necessary.

fixes #48411

PR Close #48417
2022-12-12 09:36:38 -08:00
Bob Watson
b5bb4c17d0 docs: update of landing page and backup pages (#47047)
Updates the angular.io landing page with new messaging
and new images. The Quick-start app has been updated
to demonstrate a minimalist Angular app and the value
proposition content has been updated.

PR Close #47047
2022-12-09 16:04:34 -08:00
Virginia Dooley
4d2bac51c2 docs: Document extracted from the original Introduction document, which is to be retired. (#47913)
docs: add to pullapprove

PR Close #47913
2022-12-09 15:06:50 -08:00
Virginia Dooley
528cc457c6 docs: Document extracted from the original Introduction document, which is to be retired. Linting suggested corrections made. Restructuring or rewording sentences to be shorter and clearer. (#47909)
docs: add to pullapprove

PR Close #47909
2022-12-09 14:59:58 -08:00
Virginia Dooley
7ec97f31df docs: Document extracted from the original Introduction document, which is to be retired. Linting suggested corrections made. Restructuring or rewording sentences to be shorter and clearer. (#47912)
PR Close #47912
2022-12-09 14:28:59 -08:00
Virginia Dooley
6d9df7bbf9 docs: Document extracted from the original Introduction document, which is to be retired. Linting suggested corrections made. Restructuring or rewording sentences to be shorter and clearer. (#47908)
docs: add to pullapprove

PR Close #47908
2022-12-09 14:27:56 -08:00
Jessica Janiuk
4bf271a910 ci: Add jessicajaniuk to code-ownership pullapprove group (#48426)
Add Jessica to the code-ownership group to allow approve PullApprove
config changes.

PR Close #48426
2022-12-09 14:05:09 -08:00
piyush132000
bb32531042 docs: cleanup the components (#48382)
Removed empty methods and import from files

PR Close #48382
2022-12-09 13:31:45 -08:00
Andrew Scott
dcfbe22434 docs(common): Add note to location about investigating base href handling (#48422)
There have been/are several bugs related to base href handling in
Angular (#45744, #48175, #19296).
These all stem from the attempted custom handling of base href
in the `Location` class. This logic does not really make an attempt
to be fully compliant with the spec.

PR Close #48422
2022-12-09 12:38:59 -08:00
Angular Robot
04d77f5cf5 build: update cross-repo angular dependencies (#48405)
See associated pull request for more information.

PR Close #48405
2022-12-09 11:26:14 -08:00
Alan Agius
d07241dd12 build: update cross-repo angular dependencies (#48409)
See associated pull request for more information.

Closes: #48339

(cherry picked from commit 31742210a38b3e01e25cfa9c4e13f6f0e13bf1dd)

PR Close #48409
2022-12-09 11:00:58 -08:00
Alan Agius
e376e924d8 refactor(migrations): remove unused migrations (#48414)
These migrations can no longer run due to a single update version policy (IE: from 13 to 14, 14 to 15 etc..). Therefore these are redundant and can be deleted.

We also remove the `-beta` suffix from the version which is not needed as the Angular CLI will add the prerelease suffixes automatically.

PR Close #48414
2022-12-09 10:04:03 -08:00
Matthieu Riegler
0fa70dfb6d refactor(router): code cleaning (#48259)
Removing unnecessary type assertions, null assertions etc.

PR Close #48259
2022-12-09 09:59:20 -08:00
piyush132000
ea00adf761 docs: updated local variables and removed empty methods (#48344)
Removed empty methods and import from files and updated variable assignment

PR Close #48344
2022-12-09 09:56:07 -08:00
Angular Robot
bbaa850482 build: update dependency fs-extra to v11 (#48261)
See associated pull request for more information.

PR Close #48261
2022-12-09 09:54:16 -08:00
Alan Agius
d99638f796 build: update gitignore to ignore files which should not be commited. (#48399)
Previous node_modules and logs where were being tracked.

PR Close #48399
2022-12-09 09:43:29 -08:00
Alan Agius
a239d18b13 build: replace package-lock with yarn.lock (#48399)
We use Yarn as our package manager and not NPM.

PR Close #48399
2022-12-09 09:43:29 -08:00
Alan Agius
c39ec653ce ci: disable renovate from updating marketing-first-app (#48399)
This application was added recently and we will stop renovate updates due to the following
- It is causing `Artifact update problem`. See: https://github.com/angular/angular/pull/48388#issuecomment-1341681430
- Generally `examples` in aio in use a shared `package.json`

PR Close #48399
2022-12-09 09:43:29 -08:00
Joey Perrott
6f70a04b7f build: update to latest @angular/ng-dev buid (#48416)
Update to the latest commit to get caretaker check fixes.

PR Close #48416
2022-12-09 09:25:41 -08:00
Bob Watson
d3002978df docs: move marketing demo out of tested examples (#48404)
PR Close #48404
2022-12-08 23:39:41 +00:00
Andrew Kushnir
83f694752a refactor(router): use RegExp to check if a URL is absolute (#48406)
Previously, this check looked like this: `/^(https?:)?\/\//.test(baseHref)`,
but that resulted in syntactically incorrect code after Closure Compiler minification.
This was likely caused by a bug in Closure Compiler, but for now, the check is rewritten
to use `new RegExp` instead.

PR Close #48406
2022-12-08 15:06:16 -08:00
Angular Robot
4311aa70f7 build: update cross-repo angular dependencies (#48388)
See associated pull request for more information.

PR Close #48388
2022-12-08 12:29:37 -08:00