60 Commits

Author SHA1 Message Date
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
Stepan Suvorov
31cb418370 docs(aio): Fix http guide 2017-07-20 09:35:27 -07:00
Scotty Waggoner
256bc8acdd docs(http): Make name of injected HttpTestingController consistent 2017-07-18 10:35:56 -07:00
Alexey Toksarov
2a2fe11e8d docs(aio): fix HttpClient setting new header sample 2017-07-18 10:02:27 -07:00
WilliamKoza
9f99f4fae2 docs: fix HttpClient sample 2017-07-17 14:03:32 -07:00
Kasidit Iamthong
c6ad212a98 docs(aio): fix HttpClient's interceptor sample 2017-07-17 14:03:16 -07:00
Don Denton
47b3ecd9a3 docs(http): fix "Expecting and answering requests" example mistake
Possibly overlooked testing documentation mistake fixed:
- `http.get('/data')` probably ought to be paired with `httpMock.expectOne('/data')` instead of `httpMock.expectOne('/data')`.
2017-07-17 14:01:44 -07:00
WilliamKoza
8c81c62d46 docs: fix HttpClient logging's sample 2017-07-17 14:01:24 -07:00
Daniel Bunte
7e72317059 docs(http): fixed syntax error in AuthInterceptor example 2017-07-17 14:00:59 -07:00
Alex Rickabaugh
e0fa727594 fix(aio): document XSRF protection in HttpClient 2017-07-14 12:42:37 -07:00
cexbrayat
8e56c3cb30 docs: fix type error in HttpClient sample 2017-07-14 09:35:25 -07:00
Alex Rickabaugh
bc1ea8c54b docs: rewrite 'Server Communication' doc guide to use HttpClient () 2017-07-13 15:22:07 -07:00
David Herges
06a0cf2e31 docs(aio): http guide shows how to import toPromise operator from rxjs
Solves 
2017-06-15 07:45:12 +01:00
Jesus Rodriguez
b016984c04 docs(aio): resize images 2017-05-12 14:28:09 +01:00
Peter Bacon Darwin
56ccd5e6a1 docs(aio): remove excess h1s from guides
Only one h1 is allowed per document.

(Also took the opportunity to remove unnecessary blank lines from these
docs, and a bit of general tidying.)

Closes 
2017-05-11 08:15:19 +01:00