4604 Commits

Author SHA1 Message Date
Joey Perrott
bdd3cca9ab docs: update wording for angular libraries mapping peer dependencies ()
Update the wording for Angular Libraries mapping of peer dependencies to make
it clearer that only the parts of @angular/* that the library depends on
should be marked as peer dependencies.

Closes 

PR Close 
2021-05-25 22:09:51 +00:00
Pete Bacon Darwin
063d1789c2 docs: move "Browser Support" page in navigation tree ()
Closes 

PR Close 
2021-05-25 22:09:25 +00:00
Igor Minar
f74fd64523 fix(docs-infra): increase the opacity of background-color for inline code blocks ()
I intentionally did not change the font size as discussed in 
because the current
font size is already about the same as the normal text size.

Fixes 

PR Close 
2021-05-25 17:59:26 +00:00
Andrew Scott
2ff5bfe139 docs: fix documentation of guard execution order ()
The current documentation of the `CanDeactivate`, `CanActivate`, and
`CanActivateChild` guard execution order is incorrect. This commit
corrects the documentation. For reference, see https://stackblitz.com/edit/angular-canactivatechild-nqp1f7

Fixes 

PR Close 
2021-05-25 17:54:52 +00:00
Igor Minar
dc6bff10ac docs: clarify the definition of the bundle bundget defaults with strict mode ()
Previously we didn't clarify that the stricter defaults have no impact on existing
projects, and we also didn't define the default values for bundle budgets.

Fixes 

PR Close 
2021-05-25 17:54:05 +00:00
David Shevitz
1955dbb048 docs: remove references to CheckAlways and CheckOnce ()
Fixes 

PR Close 
2021-05-25 17:53:23 +00:00
Alan Agius
d15a6a3a71 docs: update web-worker syntax ()
With this change we update the worker initialization syntax to reflect that used in Angular CLI 12.

Closes 

PR Close 
2021-05-25 17:52:58 +00:00
Andrew Scott
29e5d509aa docs: clarify expectations for ActivatedRoute observables ()
https://github.com/angular/angular/issues/16261#issuecomment-748289240

A couple important things to note about the behavior:

* The component is destroyed, meaning that all of its members will be destroyed as well, including any subscriptions to the route params
* This _does not_ mean that any `finalize` operators or `complete` on the subscription is called. This only happens if the source completes or you unsubscribe from the subscription. The documentation doesn't state that the `Router` will do this, though I can still understand why the behavior is confusing.

You can play around with these scenarios here:
https://stackblitz.com/edit/rxjs-hmpizx
* `complete` the source without unsubscribe: `next`, `complete` and `finalize` are all called, even when `complete` is called before the `next` from the `delay`
* `unsubscribe` from subscription without `complete` on the source: `finalize` happens, but the `complete` of the subscription does not, and neither does `next`

So even if the `Router` were to call `complete` on all of the `Observables` on an `ActivatedRoute`, you would see that any subscriptions with a `delay` operator would still get called.

resolves 

PR Close 
2021-05-25 17:52:32 +00:00
Zach Arend
1c3fe69f92 docs: change Zeit -> Vercel ()
In the deployment guide on AIO, change the Zeit company name to Vercel.
This is because Zeit rebranded to Vercel. Also update link to point to
Vercel's page about angular.

Fixes 

PR Close 
2021-05-25 02:43:38 +00:00
Igor Minar
44c8f46131 docs: fix ng-for link in structural-directives.md ()
Correctly the reference to ng-for as `NgForOf` so that we get the word linked to the API page.

`NgFor` is not a JavaScript symbol so the docs infra doesn't autolink to the API page unless
we use the correct symbol name - `NgForOf`.

PR Close 
2021-05-25 02:43:12 +00:00
David Shevitz
1040697787 docs: remove sentence about how the not reloading the page. ()
Fixes 

PR Close 
2021-05-24 15:42:42 -07:00
Sam Severance
29ece98744 docs: asynchronous test spy method ()
fixes two `HeroService` tests that were synchronously
testing an asynchronous spy method

PR Close 
2021-05-24 15:18:43 -07:00
twerske
080211264f docs: remove kapunahele ()
PR Close 
2021-05-24 15:18:17 -07:00
George Kalpakas
47bb841ed6 build(docs-infra): temporarily serve the DevTools guide at /devtools too ()
The latest SW app version knows that `/devtools` should be redirected to
`/guide/devtools`. However, if a user has an older app version installed
(and until the SW downloads the latest version) they will get a 404 when
navigating to `/devtools`.

The reason is that the SW will see `/devtools` as a regular navigation
URL and serve `index.html` instead. The Angular app will then try to get
the content for `/devtools` by fetching `/generated/docs/devtools.json`
(which does not exist).

This commit fixes the issue by redirecting
`/generated/docs/devtools.json` to
`/geenrated/docs/guide/devtools.json`. When a user visits `/devtools`
for the first time, they will still be able to see the guide content
(while the SW updates in the background). On subsequent visits (once the
SW has downloaded the latest app version), they will be redirected to
`/guide/devtools`).

At a later time, once we are confident that the majority of users will
have updated to a newer app version, we can remove this temporary
redirect.

PR Close 
2021-05-24 15:17:21 -07:00
Sam Severance
ad12b31c27 docs: unsubscribe from observables ()
Add rxjs `first` operator in `DashboardHeroComponent` unit
tests to ensure unsubscription from observables

PR Close 
2021-05-24 15:16:52 -07:00
Zach Arend
cb48bde35d docs: in toh-pt5, navigate back to home page after going to /heroes ()
This fixes an issue in part 5 of the Tour of Heroes tutorial on
angular.io. At the end of the `Add RouterOutlet` section, the reader navigates to
`"/heroes"`. The next section, `Add a navigation link`, instructs the user to click ona link on the dashboard page to navigate to the heroes page. This is problematic because the previous section instructed the reader to navigate to the heroes page, not the dashboard. It assumes, the reader is on the dashboard page.

Fixes issue by instructing the reader to navigate back to the dashboard
after navigating to `"/heroes"` in the `Add RouterOutlet` section.

resolves 

PR Close 
2021-05-24 19:27:24 +00:00
George Kalpakas
c820066d98 docs: align code in product-example.component.*.ts files ()
This commit aligns the code in `product-alerts.component.ts` with
[product-alerts.component.1.ts][1], since both files are supposed to
represent the same component in different points in time. It also makes
the necessary changes in the respective templates.

This is a follow-up to .

[1]: e86a1d3441/aio/content/examples/getting-started/src/app/product-alerts/product-alerts.component.1.ts (L18)

PR Close 
2021-05-24 19:26:26 +00:00
Pete Bacon Darwin
e16778d371 docs: fix multicasting observable example ()
The example did not allow the async sequence to be cancelled
after the first timeout had completed.

Fixes 

PR Close 
2021-05-24 18:17:34 +00:00
Madleina Scheidegger
037792e8f6 docs: Update madleinas.jpg to fit size requirements ()
PR Close 
2021-05-24 18:16:26 +00:00
Madleina Scheidegger
1e39cb7bca docs: add madleinas to contributors ()
PR Close 
2021-05-24 18:16:26 +00:00
Joey Perrott
32b8832d61 docs: include source code styling section in docs style guide ()
Include a source code styling section in the style guide for docs,
indicating to follow the Angular style guide where possible and
defining hexidecimal style guidance.

Closes 

PR Close 
2021-05-24 17:38:02 +00:00
mgechev
c03280fd54 docs: update the intro image in the devtools guide ()
The original image had an extra tooltip which was distracting and
unnecessary.

PR Close 
2021-05-24 14:47:31 +00:00
Alan Agius
d7a1da9d4f docs: fix incorrect point in universal-in-action ()
Previously it was mentioned that "Clicking a hero on the Heroes page does nothing.", this is not correct however since this link is implemented using `routerLink`.

Closes 

PR Close 
2021-05-24 14:47:06 +00:00
chenyunhsin
3293dd34ca docs: add missing Product interface to example ()
Fixes 

PR Close 
2021-05-21 22:14:47 +00:00
Joey Perrott
4d56c10584 docs: move helpful alert regarding built-in directives to more logical place ()
Moving the helpful alert expressing that built-in directives use public APIs
to be under the heading about built-in directives generally makes the content
in the alert more related to its surroundings than its previous location within
the ng-for section.

Closes 

PR Close 
2021-05-21 22:13:03 +00:00
iRealNirmal
03825cfab6 docs: updated animation docs intro section and example ()
This commit updates the animation docs and provides better clarity for open-close component with it also added click event in open-close.component

Closes 

PR Close 
2021-05-21 18:09:26 +00:00
iRealNirmal
34cd4dc852 docs: add Angular 12 support information ()
Added angular 12 suppport information in release document

Closes 

PR Close 
2021-05-21 18:08:09 +00:00
Sam Severance
62becc88f9 fix(docs-infra): fix example compilation issues ()
Fix an issue that prevented the Http (tests) StackBlitz
and Testing (tests) StackBlitz from compiling.

Resolves 

PR Close 
2021-05-21 18:07:44 +00:00
Teri Glover
d2a89dbbd9 docs: edits to remove jargon ()
PR Close 
2021-05-20 23:06:02 +00:00
Teri Glover
57540f0e75 docs: edit to remove jargon ()
PR Close 
2021-05-20 23:06:02 +00:00
David Shevitz
99f5b872e1 docs: add new tutorial that explains how to use the UrlMatcher for custom route matching ()
PR Close 
2021-05-20 23:05:32 +00:00
Renovate Bot
d6bc61ab5f build: update angular ()
PR Close 
2021-05-20 17:25:51 +00:00
mgechev
c9bc88757b docs: embed the devtools video in the corresponding guide ()
Allow people consume the content in a video format.

PR Close 
2021-05-20 16:55:16 +00:00
George Kalpakas
04ab5edf65 test(docs-infra): correctly test URL redirects when the destination URL is also redirected ()
Since , `/guide/updating-to-version-10` is being redirected to
`https://v11.angular.io/guide/updating-to-version-11`. However,
`v11.angular.io` itself is being redirected to `angular.io`, while v11
is the latest stable version. As a result,
`/guide/updating-to-version-10` ends up being redirected to
`https://angular.io/guide/updating-to-version-11`. Currently, this
causes a CI failure in the `aio_monidoting` job ([example failure][1]).

This will change once v12 is released as the new stable version.
Alternatively, we could update the config and tests to expected
`/guide/updating-to-version-10` to be redirected to
`https://angular.io/guide/updating-to-version-11`, but that would end up
being redirected to `https://angular.io/guide/updating-to-version-12`
once v12 would be released, which is different behavior.

This commit provides a way to test for redirects when the destination
URL is itself redirected to a different URL. This allows us to use the
intended URL (for example, `https://v11.angular.io/...`), which will
continue to work as expected regardless of what is the latest stable
version without causing CI failures.

[1]: https://circleci.com/gh/angular/angular/983738

PR Close 
2021-05-20 16:07:59 +00:00
Renovate Bot
5c44ec1b45 build: lock file maintenance ()
PR Close 
2021-05-19 09:20:53 -07:00
mgechev
132e418a30 docs: update the status of roadmap projects ()
- Move Angular DevTools as completed
- Move optional NgModules as active

PR Close 
2021-05-19 09:19:06 -07:00
George Kalpakas
d0958e8254 build(docs-infra): upgrade cli command docs sources to 9cbb4059f ()
Updating [angular#master](https://github.com/angular/angular/tree/master) from
[cli-builds#master](https://github.com/angular/cli-builds/tree/master).

##
Relevant changes in
[commit range](f9a9dc37e...9cbb4059f):

**Modified**
- help/serve.json

PR Close 
2021-05-19 09:18:37 -07:00
David Shevitz
5b9a36cf95 docs: move all existing router documentation into a single location and add two new topics: an overview and a reference ()
PR Close 
2021-05-18 15:39:38 -07:00
Renovate Bot
b7d161487f build: update dependency esbuild to ^0.12.0 ()
PR Close 
2021-05-18 15:37:07 -07:00
mgechev
a303362481 docs: redirect for devtools to the corresponding guide ()
Add redirects for Angular DevTools. We have
https://angular.io/guide/devtools as canonical URL, but as a short URL
we use https://angular.io/devtools to make the extension more
discoverable.

PR Close 
2021-05-18 11:18:35 -07:00
Sumit Arora
991f8523b3 docs: adding angular devtools documentation ()
This PR adds user guide for Angular DevTools explaining the basics of
the component explorer and the profiler.

PR Close 
2021-05-18 11:18:35 -07:00
Sam Severance
63383c186d docs: use ValidationErrors interface in Form validation examples ()
PR Close 
2021-05-18 10:14:02 -07:00
iron
2dfa010763 docs: update bazel migration doc link ()
PR Close 
2021-05-18 08:36:23 -07:00
Daniel Díaz
5014133be3 docs: transform to uppercase API word in HTTP file ()
PR Close 
2021-05-18 08:35:54 -07:00
Lars Gyrup Brink Nielsen
fd4dbcb0c7 docs: decorate input properties with @Input ()
PR Close 
2021-05-18 08:35:05 -07:00
iRealNirmal
5885cf5ad8 build(docs-infra): fixed broken stackblitz examples ()
This commit fixes the broken stackblitz examples.

Closes  .

PR Close 
2021-05-18 08:34:40 -07:00
rachid Oussanaa
78e7312d39 docs: change project to projected for past tense ()
PR Close 
2021-05-17 10:55:18 -07:00
Kristiyan Kostadinov
e86a1d3441 docs: make all examples compatible with strict mode ()
Turns on the `strict` compiler flag and resolves the compilation errors in the various AIO examples.

PR Close 
2021-05-17 10:42:18 -07:00
Daniel Díaz
e89e3cb375 docs: uppercase API word in Ivy Compatibility file ()
PR Close 
2021-05-14 21:06:32 +00:00
Renovate Bot
fdb3d3076e build: update angular ()
PR Close 
2021-05-13 16:13:20 -04:00