angular/aio/content/examples
Ward Bell 8ef5cc680d docs: Migrate HttpClient guide and its code examples (/http) to standalone (#51400)
**Unit Testing Code Does Not Compile**

The compilation error is:
```
The compilation error is
./src/testing/http-client.spec.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
Error: /home/projects/obk3vc--run/src/testing/http-client.spec.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
```
I’m not sure what to say about unit testing HTTP in a full Standalone app. Is it different?

_This is the only known remaining defect in this conversion of HTTP to Standalone._

**Edited content of  `http-request-data-from-server.md`**

The current version of this page is confusing. In particular

* It tells readers they **should always unsubscribe** from the HttpClient method calls. This is *not true* and this example doesn't even do it. I replaced this instruction with more nuanced advice and an explanation of why it is OK to not unsubscribe to HttpClient methods.

* There is a "helpful" note about using the RxJS `map` operator to transform the response. This is *not "helpfulf"*. It is *confusing* because the sample doesn't use `map` anywhere. It was unnecessary here, even if it might be helpful elsewhere. I removed this note.

* The "Requesting a typed response" section seemed unclear to me, particularly because the guide begins with a `get` request that already has the `Config` return type specification. My revision attempts to make this more clear.

* The bold "callout" about the `observe` and `responseType` options appears out of nowhere after "Requesting a typed response". It's disconcerting at best. I moved it to the bottom of the page and linked to it from the `options` discussion at the top.

I made a few other revisions that I hope improve the readability of this page.

**Corrected `http-make-jsonp-request.md`**

The JSONP example, handwritten in the guide page, would not have compiled. I added one that does to `heroes.service.ts` and displayed it on this page.

**Corrected `http-handle-request-errors.md`

This page ended with a section called "Sending data to a server" that introduces PUT, POST, and DELETE. These features have nothing to do with error handling and the verbiage here duplicates the opening paragraphs of the next topic which does: "Send data to a server". So I deleted this section from the error handling guide page.

**Archived http-setup-server-communication.md**

`http-setup-server-communication.md` appears to be the original long document that has since been divided over the other pages in this folder.

It shouldn’t be in the reader’s flow. I did update it for Standalone. But I also removed it from left-nav and marked as archived.

PR Close #51400
2023-08-29 21:03:49 +00:00
..
accessibility build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
ajs-quick-reference build(docs-infra): replace base64 images for stackblitz by svgs (#48774) 2023-01-24 16:39:28 +00:00
angular-compiler-options docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00
angular-linker-plugin docs: fix ellipsis in code-snippet in creating-libraries guide (#45820) 2022-05-09 11:08:46 -07:00
animations docs(animations): update animation docs to be standalone first (#51390) 2023-08-21 13:01:20 -07:00
architecture build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
attribute-binding docs(docs-infra): update precedence of binding dynamic example and commentary (#48636) 2023-01-04 12:16:40 -08:00
attribute-directives docs: removed empty methods (#48343) 2022-12-05 12:03:33 -08:00
binding-syntax docs: migrate binding-syntax code to standalone (#51479) 2023-08-28 23:55:07 +00:00
bootstrapping docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
built-in-directives build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
built-in-template-functions docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
cli-builder/src docs: update CLI builder to be platform agnostic (#42371) 2021-06-01 10:13:02 -07:00
comparing-observables build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-interaction docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
component-overview build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
component-styles build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
content-projection build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
dependency-injection docs: Improve documentation about Injection context / inject (#49782) 2023-07-10 07:09:31 -07:00
dependency-injection-in-action docs: removed unused methods (#50631) 2023-06-09 17:41:55 +02:00
deprecation-guide refactor(core): Remove ReflectiveInjector symbol (#48103) 2023-04-04 16:43:53 -07:00
displaying-data docs: updated local variables and removed empty methods (#48344) 2022-12-09 09:56:07 -08:00
docs-style-guide build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
dynamic-component-loader docs: type clearTimer function as VoidFunction or undefined (#48480) 2023-04-18 19:03:57 +00:00
dynamic-form docs: cleanup the components (#48382) 2022-12-09 13:31:45 -08:00
elements docs: Update Popup.service example to remove ComponentFactoryResolver (#49638) 2023-03-30 09:38:15 -07:00
errors/cyclic-imports refactor(compiler-cli): error on cyclic imports in partial compilation (#40782) 2021-02-17 06:53:38 -08:00
event-binding docs: migrate event-binding code to standalone (#51538) 2023-08-29 17:53:54 +00:00
feature-modules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
first-app-lesson-00 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-01 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-02 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-03 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-04 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-05 docs: delete the files from each of the directories. (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-06 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-07 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-08 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-09 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-10 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-11 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-12 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-13 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
first-app-lesson-14 docs: fix image issues by hosting them on aio, refactor content (#51014) 2023-07-13 09:36:55 -07:00
form-validation docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
forms docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
forms-overview build: ensure chromium is not using sandbox within Bazel sandbox for AIO example e2e tests (#49293) 2023-03-03 19:41:35 +00:00
getting-started docs: update link to the TS config. (#50933) 2023-07-05 13:58:35 +02:00
getting-started-v0 docs: replaced the html tags with the updated ones (#50403) 2023-05-22 17:36:33 +00:00
hierarchical-dependency-injection docs: add legend tag to fieldset (#51259) 2023-08-09 17:18:38 -07:00
http docs: Migrate HttpClient guide and its code examples (/http) to standalone (#51400) 2023-08-29 21:03:49 +00:00
i18n docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
inputs-outputs docs(docs-infra): Adding required and Transform Args into the usage and documentation of input (#51173) 2023-07-26 10:03:41 -07:00
interpolation build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
lazy-loading-ngmodules docs: added lang attributes in html files (#50588) 2023-06-12 12:08:09 +02:00
lifecycle-hooks build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
ngcontainer build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
ngmodules docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
observables docs: type clearTimer function as VoidFunction or undefined (#48480) 2023-04-18 19:03:57 +00:00
observables-in-angular build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
pipes docs: Migrate pipe guide and its code examples to standalone (#51333) 2023-08-29 17:52:35 +00:00
practical-observable-usage docs: remove pipe in exponential backoff (#49494) 2023-03-21 07:58:05 +01:00
property-binding docs: refactored the markup tags (#50481) 2023-05-30 09:21:58 -07:00
providers docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
providers-viewproviders docs: clarify example instructions (#50371) 2023-05-22 14:45:28 +00:00
reactive-forms build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
resolution-modifiers docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
router docs(router): Clarify how to clear secondary routes (#51376) 2023-08-15 15:43:17 -07:00
router-tutorial docs(router): Update the basic router guide to use standalone (#51452) 2023-08-28 18:35:31 +00:00
routing-with-urlmatcher docs(router): Update the url matcher guide to use standalone (#51450) 2023-08-25 16:43:50 +00:00
rx-library build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
schematics-for-libraries docs: update schematic authoring guide to use new utilities (#50667) 2023-06-12 19:15:45 +02:00
security docs: added title attribute to the iframe tag (#50569) 2023-06-12 11:24:35 +02:00
service-worker-getting-started build(bazel): incrementally run aio example e2e tests 2022-11-22 13:51:16 -07:00
setup docs: add lang attribute to html files (#51235) 2023-08-01 12:16:44 -07:00
structural-directives docs: remove duplicate words. (#51215) 2023-08-01 12:08:33 -07:00
styleguide docs: standardize examples using timers for SSR compatibility (#48480) 2023-04-18 19:03:57 +00:00
template-expression-operators docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
template-reference-variables docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
template-syntax docs: migrate template guide and its code examples to standalone. (#51364) 2023-08-28 18:36:51 +00:00
testing build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
toh-pt0 build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
toh-pt1 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt2 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt3 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt4 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt5 docs: remove onInit from Tour Of Heroes. (#48576) 2023-01-05 14:49:37 -08:00
toh-pt6 refactor(router): Remove RouterTestingModule in favor of RouterModule.forRoot (#49427) 2023-04-04 15:12:33 -07:00
two-way-binding build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
universal build: lock file maintenance (#51134) 2023-07-24 08:12:51 -07:00
upgrade-lazy-load-ajs docs: remove empty constructors & ngOnInit() (#48576) 2023-01-05 14:49:38 -08:00
upgrade-module docs: add title tag to index file (#51266) 2023-08-04 11:29:49 -04:00
upgrade-phonecat-1-typescript build(bazel): selectively enable network access for some aio targets 2022-11-22 13:51:16 -07:00
upgrade-phonecat-2-hybrid ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
upgrade-phonecat-3-final ci: disable system js tests (#49559) 2023-03-23 08:18:45 -07:00
user-input build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
view-encapsulation build(bazel): remaining AIO Bazel migration fixes 2022-11-22 13:51:16 -07:00
what-is-angular docs: update what is angular to use standalone and cup of coffee (#51378) 2023-08-29 18:38:28 +00:00
.eslintrc.json build: update dependency eslint-plugin-jsdoc to v45 (#50523) 2023-05-31 12:34:26 -07:00
BUILD.bazel build(bazel): incrementally build aio example zips and live examples 2022-11-22 13:51:16 -07:00
examples.bzl build: include bazel build file in aio playground code (#51485) 2023-08-23 14:44:03 -07:00
tsconfig.eslint.json refactor(docs-infra): use eslint in aio's example-lint script (#43218) 2021-12-15 12:28:46 -05:00