74 Commits

Author SHA1 Message Date
David Pfeiffer
574f64041e docs: specify correct interceptor class type ()
In the "Interceptor order" section of the HTTP guide there is a typo which incorrectly lists the same service twice when referring to two different services. The order that these services are listed is important, and this commit fixes the typo by listing the services in the correct order.
PR Close 
2021-06-01 16:36:58 -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
Wojciech Okoński
ea89617880 docs(docs-infra): fix handling of client-side errors in networking ()
Previously example for handling client-side errors in networking didn't work when there was no Internet connection.
Caught error is ProgressEvent in such case, not ErrorEvent and error.error.message is undefined.

PR Close 
2021-04-29 13:51:42 -07:00
Kapunahele Wong
09abee359d docs: add metadata documentation to httpClient ()
PR Close 
2021-04-26 15:17:51 -07:00
Kapunahele Wong
70fb3e958b docs: improve accessibility of http example ()
PR Close 
2021-04-26 09:11:07 -07:00
Aristeidis Bampakos
198e841564 docs(http): add example for interceptor order ()
Add an example for the order of interceptor with image

PR Close 
2021-03-01 15:33:36 -08:00
Pete Bacon Darwin
4859c0947a build(docs-infra): implement full template checking for examples ()
This commit turns on full template type checking and fixes the examples
that had errors.

PR Close 
2021-02-26 15:40:44 -08:00
cexbrayat
91cdc11aa0 fix(common): allow number or boolean as http params ()
This change fixes an incompatibility between the old `@angular/http` package
and its successor (`@angular/common/http`) by re-introducing the types that were supported before.

It now allows to use number and boolean directly as HTTP params, instead of having to convert it to string first.

Before:

    this.http.get('/api/config', { params: { page: `${page}` } });

After:

    this.http.get('/api/config', { params: { page }});

`HttpParams` has also been updated to have most of its methods accept number or boolean values.

Fixes 

BREAKING CHANGE:

The methods of the `HttpParams` class now accept `string | number | boolean`
instead of `string` for the value of a parameter.
If you extended this class in your application,
you'll have to update the signatures of your methods to reflect these changes.

PR Close 
2021-02-26 12:03:50 -08:00
Amadou Sall
0807d13201 docs: remove the extra backtick character ()
PR Close 
2021-02-17 06:56:03 -08:00
Pete Bacon Darwin
529f0a83cb docs(http): add custom JSONParser example ()
Update the HTTP guide and associated example to demonstrate
how an interceptor can be used to provide a custom JSON parser.

Resolves 

PR Close 
2021-02-16 08:03:33 -08:00
Alexey Elin
b636406043 docs: fix broken link to XSRF common protection mechanism ()
PR Close 
2021-01-19 09:17:50 -08:00
sijmenhuizenga
acb1162d91 docs: change links to in-memory-web-api in github/angular repo ()
In  the in-memory-web-api module was moved into this repo.
Make links in the docs point to the new location of the in-memory-web-api.

Fixes 

PR Close 
2021-01-08 09:45:41 -08:00
Amadou Sall
8d25bd1e9f docs: HTTP in HttpClient should not be written in uppercase ()
PR Close 
2020-12-21 14:21:32 -08:00
George Kalpakas
dc697d33d0 docs(http): fix em-dashes not displaying correctly ()
Fixes 

PR Close 
2020-11-18 15:40:49 -08:00
George Kalpakas
5303773daf refactor(docs-infra): fix docs examples for tslint rule prefer-const ()
This commit updates the docs examples to be compatible with the
`prefer-const` tslint rule.

This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.

PR Close 
2020-07-31 11:00:06 -07:00
David Auza
a259a84d3f docs(http): Remove extra semicolons in the http guide ()
An extra semicolon in searchHeroes function was removed in the http guide
found in aio/content/guide/http.md

docs(http): Remove extra semicolon in a code example found in the http guide

Removed extra semicolon in handleError function in the file located at
aio/content/examples/http/src/app/config/config.service.ts, which serves
as a source of code examples for the http guide.

Replace a comma for a dot in the comment at line 79 to ensure consistency
with the rest of the document.

Capitalized and added a dot at the end of the comment at line 84 to
ensure consistency with the other comments.

PR Close 
2020-07-13 09:25:19 -07:00
Igor Minar
eb6ba9ac80 docs: fix various typos ()
This change just fixes various typos and misspellings across several docs.

I've included also a fix for an issue surfaced via .

Closes 

PR Close 
2020-06-04 16:03:54 -07:00
Judy Bogart
297b7da166 docs: add string-union type note ()
PR Close 
2020-04-16 09:47:21 -07:00
Judy Bogart
6aac91743b docs: style edit ()
PR Close 
2020-04-16 09:47:21 -07:00
Judy Bogart
f06d5f02b3 docs: update http guide ()
PR Close 
2020-04-16 09:47:21 -07:00
Judy Bogart
e1ac2efe4a docs: make page titles and toc task-oriented ()
PR Close 
2020-04-01 13:16:48 -07:00
Sonu Kapoor
44f9fa6ce5 docs: add missing closing bracket ()
Closes 
PR Close 
2020-03-06 12:38:30 -05:00
arturovt
2dd572b15c docs(http): fix typo ()
PR Close 
2019-11-22 12:36:43 -05:00
Ralf D. Müller
fd5f101bab docs: add CSRF to XSRF section of http guide ()
link to the correct section of the HttpClientGuide:
if someone searches for CSRF (and not XSRF), she will not find the right section in the HttpClient guide

added CSRF as name of XSRF attack:
in order to make it easier to find the XSRF protection, I've added a reference to the other name "CSRF". The security guide has the same reference to XSRF/CSRF.
When I searched for this feature, I had quite some problems to find it because of this missing reference

PR Close 
2019-11-21 16:57:12 -05:00
thanhpd
2f6c97e93c docs: remove redundant whitespaces and fix minor typos ()
PR Close 
2019-10-29 11:39:17 -07:00
Carlos Ortiz García
9166baf709 refactor(core): Migrate TestBed.get to TestBed.inject ()
This is cleanup/followup for PR 

PR Close 
2019-09-09 19:10:54 -04:00
Amadou Sall
0a09fb1432 docs: fix a minor typo in the HTTP guide ()
"of typed" should be "of type"
PR Close 
2019-08-28 09:40:09 -07:00
Judy Bogart
2f6062f632 docs: fix callout header ()
PR Close 
2019-08-28 09:06:07 -07:00
Richard Lea
b9fbd9bb03 docs: fix wrong HttpEventType of HttpResponse class ()
PR Close 
2019-08-26 09:28:56 -07:00
Judy Bogart
21edc6a82e docs: update http guide ()
PR Close 
2019-08-22 06:39:56 -07:00
George Kalpakas
1bcd58cee8 refactor(docs-infra): remove linenums=false since it is now the default ()
PR Close 
2019-07-24 14:38:54 -07:00
Schlemmer
036294d566 docs: change interceptor documentation ()
PR Close 
2019-06-18 09:46:34 -07:00
Trevor Karjanis
9873356bd0 docs: fix grammatical errors in the guides and API documentation ()
Fix grammatical errors in the DI and HttpClient guides as well as the Resolve API documentaiton.

There is no associated issue.

PR Close 
2019-04-22 17:32:30 -07:00
Oscar Busk
6ccf743627 docs: clarify documentation about listening to progress events ()
PR Close 
2019-02-22 10:50:43 -08:00
Trevor Karjanis
d8ae8993d8 docs(common): fix a typo in a debounce requests example header ()
Remove the extra parenthesis from a debounce requests example.

There are no associated issues.

PR Close 
2019-02-19 12:59:20 -08:00
William Marques
fc6dad40ac fix(docs-infra): rename "title" by "header" to avoid unwanted tooltips ()
Closes 

PR Close 
2018-10-17 11:05:29 -07:00
thanhpd
4006c9b6e6 docs: fix spelling errors ()
PR Close 
2018-10-05 14:18:19 -07:00
Stefanie Fluin
d523630ea2 docs(aio): cleanup aalert, callout, subsection use and author style ()
PR Close 
2018-07-24 08:22:14 -07:00
Jonathan Sharpe
1ae3f87383 docs: update HTTP error test example again ()
This has somehow regressed since angular/angular#22844 was merged.

PR Close 
2018-07-02 14:37:18 -07:00
Danny Rademacher
d74078fb88 docs(http): correct spelling error ()
Correct a spelling error. I changed HttpParms to HttpParams
PR Close 
2018-05-29 16:55:06 -04:00
Jonathan Sharpe
091b11a4ab docs(aio): update HTTP error test example ()
Update the example to match the description preceding it, which refers to the
use of the error method and ErrorEvent rather than the flush method with a
non-2xx status as shown previously.

PR Close 
2018-05-16 17:15:20 -04:00
Bennett Hardwick
cc6c4346c2 docs(aio): update docs error in guide/http ()
Updates documentation to include examples for both req.flush and
req.error in http testing examples.

PR Close 
2018-04-27 07:24:17 -07:00
Judy Bogart
de0b13d41d docs: update for hero service name change ()
PR Close 
2018-03-29 09:20:04 -07:00
Judy Bogart
9f7bd8f618 docs: update text around changed obs examples ()
PR Close 
2018-03-29 09:20:04 -07:00
Mikhail Burshteyn
c3484450b8 docs: fix typo in http.md ()
PR Close 
2018-02-09 13:10:23 -08:00
Ward Bell
7a20691f13 docs: add http guide sample and adjust text ()
PR Close 
2018-01-31 10:24:43 -08:00
George Kalpakas
bf248792eb docs: minor fixes (anchor tags, redundant whitespace, consistent code-snippets lang) ()
PR Close 
2018-01-18 18:22:20 -06:00
courtneypattison
03d16fcd24 docs(aio): add missing imports to interceptor example ()
PR Close 
2018-01-04 17:40:34 -05:00
Dawid Winiarczyk
d365077dfa docs(aio): HttpClientXsrfModule withConfig => withOptions ()
Docummentation suggests use of HttpClientXsrfModule#withConfig but this method looks like it's renamed to #withConfig.
https://angular.io/guide/http#configuring-custom-cookieheader-names
PR Close 
2018-01-02 10:29:07 -06:00
FerhatE
3dc4115c8b docs(aio): fix "Error handling" section in "HttpClient" ()
Removed additional curly brackets to fix blocks. Also replaced tab with 2 spaces.

PR Close 
2017-08-22 15:56:12 -05:00