2262 Commits

Author SHA1 Message Date
Alan Agius
06fb318b3b docs: update inlineCritical default value ()
Related to https://github.com/angular/angular-cli/pull/20096

PR Close 
2021-02-26 15:41:15 -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
George Kalpakas
00562ed935 fix(docs-infra): center the "Contribute" page ()
This commit improves the layout of the "Contribute" page by centering
the content (similar to other marketing pages).

Before: ![contribute layout before][1]
After: ![contribute layout after][2]

This change has been extracted from .

[1]: https://user-images.githubusercontent.com/8604205/108595056-5b545f00-7386-11eb-97b6-c3606dbfb5fa.png
[2]: https://user-images.githubusercontent.com/8604205/108595060-5becf580-7386-11eb-91fa-b2877f2a4691.png

Co-authored-by: Stefanie Fluin <sjtrimble@gmail.com>

PR Close 
2021-02-26 15:39:29 -08:00
George Kalpakas
2af8099fbc fix(docs-infra): use up-to-date URLs in "Contribute" links (and replace deprecated md-button) ()
This commit replaces some outdated URLs in "Contribute" links (on the
"Contribute" page):
- `github.com/angular/material2` --> `github.com/angular/components`
- `github.com/angular/angularfire2` --> `github.com/angular/angularfire`

It also replaces the deprecated `md-button` attribute with `mat-button`.

PR Close 
2021-02-26 15:39:29 -08:00
Theoklitos Bampouris
fb82558d78 docs: Change lexical in security guide ()
Change `onerror` attribute reference to `script` element reference
PR Close 
2021-02-26 15:14:57 -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
George Kalpakas
383d226118 fix(docs-infra): add links to glossary for terms on the "Press kit" page ()
The "Press kit" page has a "Terminology" section that lists a couple of
terms (currently AOT and JIT compilation).

This commit adds links to the corresponding entries in "Glossary" to
make it easier for people to find out what the terms mean.

PR Close 
2021-02-26 08:28:22 -08:00
George Kalpakas
78a70498b5 fix(docs-infra): improve the layout and appearance of the "Press kit" page ()
This commit improves the layout and appearance of the "Press kit" page.
Most notable changes include:
- Center content and limit max width to 50em (which is 50px by default).
- Remove uppercase transform for headings.
- Use a two-column layout for icons (instead of one icon per row).
- Show "download" icons next to download links.

Before (wide): ![presskit page (wide) before][1]
Before (narrow 1/2): ![presskit page (narrow 1/2) before][2]
Before (narrow 2/2): ![presskit page (narrow 2/2) before][3]
After (wide): ![presskit page (wide) after][4]
After (narrow 1/2): ![presskit page (narrow 1/2) after][5]
After (narrow 2/2): ![presskit page (narrow 2/2) after][6]

This change is based on code from .

[1]: https://user-images.githubusercontent.com/8604205/108739632-80d79900-753d-11eb-8ddc-ac542ec5b3ac.png
[2]: https://user-images.githubusercontent.com/8604205/108739641-82a15c80-753d-11eb-9b20-8119ad117460.png
[3]: https://user-images.githubusercontent.com/8604205/108739643-83d28980-753d-11eb-8afa-2d7a5e87d586.png
[4]: https://user-images.githubusercontent.com/8604205/108739638-8208c600-753d-11eb-99bb-ea119640de39.png
[5]: https://user-images.githubusercontent.com/8604205/108739642-8339f300-753d-11eb-9b25-5c1988adb1dd.png
[6]: https://user-images.githubusercontent.com/8604205/108739645-846b2000-753d-11eb-8ef3-b6a8b7c6d1ff.png

Co-authored-by: Stefanie Fluin <sjtrimble@gmail.com>

PR Close 
2021-02-26 08:28:21 -08:00
George Kapris
953e98e211 docs: Change grammatically in security guide ()
Change `controller` reference to `component` reference
PR Close 
2021-02-26 08:25:21 -08:00
Alan Agius
d51d39cb4c docs: update docs to use new zone.js entry-points ()
In CLI version 12, the old style of imports is no longer supported.

PR Close 
2021-02-24 07:58:29 -08:00
Carl Fredrik Samson
03de2f2b78 docs: fix ch 4 so it compiles in strict mode ()
Fixes error: `TS2564: Property 'heroes' has no initializer and is not definitely assigned in the constructor`
and makes `hero` property consistent with ch 3 (ref: )

PR Close 
2021-02-24 07:57:53 -08:00
Kapunahele Wong
06d3267824 docs: improve accessibility for toh-pt1 example ()
PR Close 
2021-02-23 10:41:56 -08:00
Kapunahele Wong
1f91672d50 docs: improve accessibility of toh2 example ()
Increases contrast of example copy.
Explicitly references inputs from labels.
Updates screenshot of styles that aren't accessible.
Removes the term master.
Provides more detailed alternate text for the image.
Adds padding to input so it is an easier target for touch or pointer.

PR Close 
2021-02-23 10:41:05 -08:00
Kapunahele Wong
1f7921be33 docs: improve accessibility of tohpt3 ()
PR Close 
2021-02-23 10:40:09 -08:00
Kapunahele Wong
bd6f377db2 docs: improve accessibility of tohpt4 ()
PR Close 
2021-02-23 10:39:44 -08:00
Kapunahele Wong
4d1299bd82 docs: improve accessibility of toh-pt5 example ()
PR Close 
2021-02-23 10:39:13 -08:00
Kapunahele Wong
edd26a2b79 docs: improve accessibility of toh-pt6 ()
PR Close 
2021-02-23 10:38:50 -08:00
Kapunahele Wong
49e02ca7d6 docs: move JsonParser class above CustomJsonInterceptor ()
This move fixes the error in StackBlitz of
Cannot access 'JsonParser' before initialization

PR Close 
2021-02-23 10:37:26 -08:00
Daniel Díaz
b84f719747 docs: update year ()
PR Close 
2021-02-22 12:37:40 -08:00
George Kalpakas
b509a7dc42 fix(docs-infra): make the "Contributors" page header similar to other marketing pages ()
Before (wide screen): ![contributors (wide screen) before][1]
Before (narrow screen): ![contributors (narrow screen) before][2]
After (wide screen): ![contributors (wide screen) after][3]
After (narrow screen): ![contributors (narrow screen) after][4]

[1]: https://user-images.githubusercontent.com/8604205/107983880-634f8000-6fcf-11eb-8ad9-5a5df65d3d5e.png
[2]: https://user-images.githubusercontent.com/8604205/107983893-6a768e00-6fcf-11eb-9ccd-158ec491404f.png
[3]: https://user-images.githubusercontent.com/8604205/107983903-6f3b4200-6fcf-11eb-94e1-182893b7a715.png
[4]: https://user-images.githubusercontent.com/8604205/107983895-6ba7bb00-6fcf-11eb-9ff5-59d221ba906d.png

PR Close 
2021-02-19 09:14:59 -08:00
George Kalpakas
fb58a2bd54 fix(docs-infra): use relative URLs for internal links on error pages ()
Previously, some of the links on the error pages had URLs prefixed with
`https://angular.io/`. This caused them to be treated as external URLs,
which had the following downsides:
- Links would always point to `angular.io` instead of the same version
  as the error page (e.g. `next.angular.io` or `v11.angular.io`).
- Dgeni would not be able to check that the URLs are valid (i.e. point
  to existing pages).
- An external link icon would incorrectly be shown next to the links on
  `angular.io`.

This commit fixes the links to use relative URLs.

PR Close 
2021-02-19 09:14:59 -08:00
Kapunahele Wong
d0b6270990 docs: edit Component lifecycle title ()
PR Close 
2021-02-19 09:10:37 -08:00
Amadou Sall
aed2782c4a docs: the token should be associated with LibHeaderComponent ()
PR Close 
2021-02-19 09:07:00 -08:00
Kapunahele Wong
30d5e25a28 docs: edit attribute-directives.md, move best practice to styleguide ()
PR Close 
2021-02-19 08:14:54 -08:00
DerekRTP
65baac6055 docs: update attribute-binding.md to correctly describe [attr.binding] rules ()
PR Close 
2021-02-17 17:05:17 -08:00
Dmitrij Kuba
2375b85fe0 docs: remove mention of unused Intl polyfill ()
Since `Intl` API was dropped to use to improve browser support,
it is no longer needed as a polyfill to test Angular.

PR Close 
2021-02-17 17:04:15 -08:00
David Shevitz
1de999b89d docs: fix minor grammar mistakes in What is Angular topic ()
PR Close 
2021-02-17 13:23:49 -08:00
David Shevitz
8658cd59b2 docs: add what is angular topic ()
PR Close 
2021-02-17 11:13:21 -08:00
Daniel
9b26f462d0 docs: fix grammar in angular-compiler-options file ()
PR Close 
2021-02-17 06:56:38 -08:00
Amadou Sall
0807d13201 docs: remove the extra backtick character ()
PR Close 
2021-02-17 06:56:03 -08:00
Pete Bacon Darwin
322951af49 refactor(compiler-cli): error on cyclic imports in partial compilation ()
Our approach for handling cyclic imports results in code that is
not easy to tree-shake, so it is not suitable for publishing in a
library.

When compiling in partial compilation mode, we are targeting
such library publication, so we now create a fatal diagnostic
error instead of trying to handle the cyclic import situation.

Closes 

PR Close 
2021-02-17 06:53:38 -08:00
Kapunahele Wong
75db0c7445 docs: edit builtin-directives doc ()
Edit built-in-directives.md copy and headers, fixes affected
links, adds a docregion to make steps clearer.

PR Close 
2021-02-16 13:04:41 -08:00
Alexey Elin
c47dbbede7 docs: fix broken link in Default Architect builders and targets section (+ remove typo 'the') ()
PR Close 
2021-02-16 10:04:48 -08:00
David Shevitz
82e7ba2702 docs: add observer-spy to resources page ()
PR Close 
2021-02-16 10:03:58 -08:00
Alexey Elin
dd3dd63845 docs: use shorthand background CSS property in Routing example ()
PR Close 
2021-02-16 09:26:26 -08:00
Pete Bacon Darwin
d6440c1808 docs: fix missing code line from tutorial example ()
In  we move the code that creates the `heroes` object
above the code that updates the message service. But this moved
that line of code outside of the docregion that is displayed in
the tutorial ealier on, making it non-sensical.

This commit ensures that this line of code is now rendered in the
tutorial be moving it within the correct docregion.

Closes 

PR Close 
2021-02-16 08:40:26 -08:00
Brandon Winchester
7fa881919b docs: Add documentation about the CLI failing ()
The CLI seems to throw very non-descriptive errors. Adding a section to help users troubleshoot lazy-loading modules.

PR Close 
2021-02-16 08:04:05 -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
Enea Jahollari
19114dc11e docs: remove unnecessary <hr /> tags in Getting Started sections ()
After the docs UI redesign `h2` tags got a border top.
`border-top: 1px solid #dbdbdb;`;
In the sections of Getting Started guide in order to separate
`What's next` from above content an `<hr />` tag was used,
that now becomes unnecessary.

This commit removes unnecessary `<hr />` tags.

PR Close 
2021-02-16 08:00:42 -08:00
Dan Levy
72db3e8d54 docs: add camelCase example to style notation ()
PR Close 
2021-02-16 07:59:40 -08:00
Alexey Elin
5f0c219883 docs: fix schematics' package name for ng generate sub-commands ()
PR Close 
2021-02-16 07:43:02 -08:00
Daniel
67d85b3680 docs: capitalize Angular word in upgrade-setup.md file ()
PR Close 
2021-02-16 07:42:35 -08:00
mgechev
72a00dcc6b docs: add a style recommendation for initializing inputs ()
This practice is to better align with `strictPropertyInitialization`
which is coming by default with strict mode in v12.

PR Close 
2021-02-12 17:07:30 -08:00
mgechev
9661873df1 docs: add ng-conf 2021 ()
PR Close 
2021-02-12 16:49:22 -08:00
Nils Mehlhorn
5554a3f174 docs: add NgRx book to resources ()
PR Close 
2021-02-12 16:48:57 -08:00
Jeremy Elbourn
bbbfa3e6bd docs: clarify that support schedule is subject to change ()
Initially raised due to , this change updates our
"Support policy and schedule" with the same disclaimer
from the "Release frequency" section above.

PR Close 
2021-02-12 16:14:52 -08:00
Sam Hrncir
ccd10ea315 docs: Clarify new ng workspace options ()
Hope this helps make the tutorial go even smoother for people after me.

PR Close 
2021-02-12 16:13:30 -08:00
Daniel
cbb6b4a30b docs: capitalize Angular word in zone.md file ()
PR Close 
2021-02-12 12:01:55 -08:00
Sam Hrncir
b4c8143cc2 docs: Update start-deployment.md ()
Updated section reference to current name listed in sidebar.
PR Close 
2021-02-12 09:30:03 -08:00
Sam Hrncir
6425a6d543 docs: typo fix ()
PR Close 
2021-02-12 08:59:47 -08:00