2548 Commits

Author SHA1 Message Date
George Kalpakas
e5b4b83778 fix(docs-infra): improve styling of completed Roadmap projects ()
This commit improves the styling of the "Completed projects" section of
the Roadmap by (a) making it consistent with the rest of the Roadmap
sections and (b) making it more similar with `<details>` elements on
other pages.

**Before:**
  _Collapsed:_ ![completed projects collapsed (before)][1]
  _Expanded:_ ![completed projects expanded (before)][2]
**After:**
  _Collapsed:_ ![completed projects collapsed (after)][3]
  _Expanded:_ ![completed projects expanded (after)][4]

[1]: https://user-images.githubusercontent.com/8604205/122917101-50c2ca00-d366-11eb-8348-01efd69cedf2.png
[2]: https://user-images.githubusercontent.com/8604205/122917109-515b6080-d366-11eb-9f18-c794fcea8dd1.png
[3]: https://user-images.githubusercontent.com/8604205/122917115-528c8d80-d366-11eb-947a-2d7da3950069.png
[4]: https://user-images.githubusercontent.com/8604205/122917117-53252400-d366-11eb-93e7-9384a7431c0d.png

PR Close 
2021-06-28 09:33:17 -07:00
marvinbeckert
45d24d28a6 docs: remove default linting tool in workspace guide ()
PR Close 
2021-06-25 09:55:53 -07:00
Dale Harris
637ac00fd5 docs: Fix reference to SwUpdate.isEnabled boolean ()
SwUpdate has an `isEnabled` boolean rather than an `isEnabled()` method. Removed parentheses for accuracy.
PR Close 
2021-06-24 12:27:38 -07:00
George Kalpakas
53fe557da7 feat(service-worker): include ServiceWorker version in debug info ()
This commit includes the ServiceWorker version in the debug info shown
at `/ngsw/state` to make it easier to know what version of the
ServiceWorker script is controlling the page.

PR Close 
2021-06-24 09:55:32 -07:00
codingnuclei
d546501ab5 feat(service-worker): add openWindow, focusLastFocusedOrOpen and navigateLastFocusedOrOpen ()
Add `openWindow`, `focusLastFocusedOrOpen` and `navigateLastFocusedOrOpen` abilty to the notificationclick handler such that when either a notification or notification action is clicked the service-worker can act accordinly without the need for the app to be open

PR Close 

PR Close 
2021-06-23 16:31:09 +00:00
Umair Hafeez
8a67770687 docs(core): improve applicationref.bootstrap docs ()
add proper examples and update usage notes
add references to the method at relevant places in the docs

PR Close 
2021-06-22 16:30:37 +00:00
mgechev
75bbcf7c2f docs: improve styles of the roadmap done section ()
The "Done" section was previously broken in dark mode. This PR:
- Fixes the dark mode styles
- Expands the done section by default

PR Close 
2021-06-22 16:26:47 +00:00
Németh Tamás
6b2a475532 docs: add new i18n formats to i18n guide ()
PR Close 
2021-06-21 18:48:19 +00:00
Pete Bacon Darwin
62aca30286 feat(docs-infra): add support for "special elements" ()
This commit adds support for generating pages that document
special Angular elements, such as `ng-content` and `ng-template`,
which have special behavior in Angular but are not directives nor
components.

Resolves 

PR Close 
2021-06-16 14:01:16 -07:00
Daniel Trevino
b52e93543f docs: add Daniel Trevino to contributors file ()
PR Close 
2021-06-15 12:53:09 -07:00
Ankit Choudhary
e7c69b8551 docs: Grammatical error ()
Updated a minor grammatical error.
PR Close 
2021-06-14 09:59:14 -07:00
Andrew Scott
5161084917 docs: remove section on tables from docs style guide ()
The approach for tables is more of an ad-hoc determination based on the
complexity of what's in them. If/when we enable formatting of markdown
files, that will also make the markdown format of tables easier to read
and more consistent.

fixes 

PR Close 
2021-06-11 11:47:03 -07:00
Pete Bacon Darwin
5e4a886259 docs: fix i18n guide typo ()
Fixes 

PR Close 
2021-06-10 14:04:43 -07:00
gobika21
cddb3a88d3 docs: fix typo in "deploy multiple locales" section ()
Fixes 

PR Close 
2021-06-10 14:03:34 -07:00
Pham Huu Hien
ec90d8d5e5 docs: change field name from id to $id in schema.json file ()
fix error "SchematicsMyService" schema is using the keyword "id" which its support is deprecated. Use "$id" for schema ID.

PR Close 
2021-06-10 14:03:00 -07:00
Aristeidis Bampakos
aef489f139 docs: add note for naming libraries ()
PR Close 
2021-06-10 13:58:41 -07:00
Kapunahele Wong
e299683692 docs: improve accessibility of router example ()
PR Close 
2021-06-10 10:28:33 -07:00
Alan Agius
665b986896 docs: CLI users polyfills ()
With this change we remove polyfills that are listed in suggested/mandatory but are not needed by Angular CLI users, since the Angular CLI will include these polyfills by default.

Closes 

PR Close 
2021-06-09 16:10:47 -07:00
Pete Bacon Darwin
e36c5b4c86 docs: fix ngProjectAs selector in example ()
Fixes 

PR Close 
2021-06-09 12:10:20 -07:00
David Shevitz
3de774e778 docs: add guidance on adding filtering and sorting logic to componetns instead of pipes ()
Fixes 

PR Close 
2021-06-08 17:53:30 -07:00
Dylan Hunn
34ce635e3a feat(forms): undo revert and add ng-submitted class to forms that have been submitted. () ()
As previously discussed in pull/31070 and issues/30486, this would be useful because it is often desirable to apply styles to fields that are both `ng-invalid` and `ng-pristine` after the first attempt at form submission, but Angular does not provide any simple way to do this (although evidently Angularjs did). This will now be possible with a descendant selector such as `.ng-submitted .ng-invalid`.

In this implementation, the directive that sets control status classes on forms and formGroups has its set of statuses widened to include `ng-submitted`. Then, in the event that `is('submitted')` is invoked, the `submitted` property of the control container is returned iff it exists. This is preferred over checking whether the container is a `Form` or `FormGroup` directly to avoid reflecting on those classes.

Closes .

PR Close .

This reverts commit 00b1444d122a64a5b6772d694c838ce8b9ca7b7d, undoing the rollback of this change.

PR Close 
2021-06-08 14:02:29 -07:00
Teri Glover
0777faccfb docs: Edited to remove jargon in Reference, Glossary, and Style sections ()
PR Close 
2021-06-08 12:51:05 -07:00
kuncevic
2a28a1ddb2 docs: add Angular Rocks podcast ()
PR Close 
2021-06-08 12:50:13 -07:00
Santosh Yadav
4975a106dc docs(platform-server): added commands for universal and add prerendering info ()
Fixes 

PR Close 
2021-06-08 12:47:24 -07:00
Sam Severance
f3fde4bbb5 docs: Add selector for PeekABooDirective ()
PR Close 
2021-06-08 12:46:06 -07:00
Teri Glover
43b4a8c07c docs: Edited to remove jargon in Reference Errors ()
PR Close 
2021-06-08 12:45:23 -07:00
Kapunahele Wong
f33fa04fb8 docs: improve accessibility of animations example ()
PR Close 
2021-06-08 12:43:32 -07:00
Kapunahele Wong
386550cdf3 docs: improve accessibility of reactive-forms example ()
PR Close 
2021-06-08 12:42:20 -07:00
Kapunahele Wong
0031c8cf41 docs: improve accessibility of attribute-binding example ()
PR Close 
2021-06-08 12:16:54 -07:00
Kapunahele Wong
4ff636d24d docs: improve accessibility of pipes example ()
PR Close 
2021-06-08 12:16:08 -07:00
Chris
8fe40026c1 docs: clarify documentation regarding passing multiple configurations to ng build ()
Fixes 

PR Close 
2021-06-08 11:49:24 -07:00
Tiago Temporin
08628b45d3 docs: add components to material community components description ()
PR Close 
2021-06-08 11:48:40 -07:00
Pete Bacon Darwin
645cad5614 docs(core): describe interactions between view-encapsulated components ()
This commit adds information to the view encapsulation guide that
describes the styling interactions between components that use differing
view encapsulation modes.

Closes 

PR Close 
2021-06-08 10:39:52 -07:00
MarsiBarsi
d10c38a8f8 docs: add Roman Sedov to contributors page ()
PR Close 
2021-06-08 10:37:51 -07:00
iRealNirmal
751f68dcf8 docs: updated collaborators and add angular dev's link ()
Existing trusted collaborators link is not working and now link is updated to one of angular.io page also it was missing angular dev's link so added it.

Closes .

PR Close 
2021-06-08 10:37:16 -07:00
Teri Glover
f1d58efdb1 docs: Edits to remove jargon in Reference Observables, Dependency Injection ()
PR Close 
2021-06-07 18:24:48 -07:00
George Kalpakas
f85a120b7b docs(router): fix code-example headers ()
Previously, the code-examples headers used in the
"Creating custom route matches" tutorial contained the name of the
example directory (`routing-with-urlmatcher`). This was confusing,
because the user was previously instructed to create an app named
`angular-custom-route-match` and switch to that directory.

This commit fixes it by removing the root directory name from the
headers, thus leaving the path of the file relative to the current
working directory. This also aligns with code-examples in other guides.

PR Close 
2021-06-07 11:58:20 -07:00
JoostK
64c8027538 docs: clarify how type-only imports can be used to avoid NG3003 ()
Since , type-only imports are not considered for cyclic imports.
This commit adds a note to the NG3003 error documentation to mention
using type-only imports to avoid the error.

PR Close 
2021-06-07 10:47:13 -07:00
Andrew Kushnir
f4c55e464a docs: provide more info on the NO_ERRORS_SCHEMA schema ()
The `NO_ERRORS_SCHEMA` schema can be used to ignore errors related to unknown elements or properties, but since it suppresses these errors it may also hide real problems in a template. This commit updates the `NO_ERRORS_SCHEMA` docs to mention that.

Closes .

PR Close 
2021-06-07 10:46:34 -07:00
Kristiyan Kostadinov
afd68e5674 feat(compiler): emit diagnostic for shadow dom components with an invalid selector ()
This is based on a discussion we had a few weeks ago. Currently if a component uses `ViewEncapsulation.ShadowDom` and its selector doesn't meet the requirements for a custom element tag name, a vague error will be thrown at runtime saying something like "Element does not support attachShadowRoot".

These changes add a new diagnostic to the compiler that validates the component selector and gives a better error message during compilation.

PR Close 
2021-06-07 10:44:57 -07:00
Pete Bacon Darwin
cc904b5226 docs(core): clarify deprecation of entryComponents ()
These may still be needed in View Engine libraries.

Closes 

PR Close 
2021-06-07 10:02:01 -07:00
Gourav102
5d70f09032 docs: Corrected spelling ()
Corrected spelling of 'Properties'.
PR Close 
2021-06-07 09:36:18 -07:00
Gourav102
cd22c7a1f5 docs: Updated the code snippet path ()
PR Close 
2021-06-07 09:32:57 -07:00
Igor Minar
30059173f4 docs: add node.js version info into the universal guide ()
Previously we didn't document what versions were supported. Since universal requires node.js I'm adding version
information into the guide as a informative callout.

Fixes 

PR Close 
2021-06-04 15:21:21 -07:00
Teri Glover
a5b5136843 docs: Edits to remove jargon in Reference NgModules ()
PR Close 
2021-06-04 13:32:56 -07:00
Jessica Janiuk
00b1444d12 Revert "feat(forms): add ng-submitted class to forms that have been submitted." ()
This reverts commit f024d7556081f8913f21761bb8e6aab8d08be110.

PR Close 
2021-06-03 17:42:02 -07:00
David Shevitz
aea56048f6 docs: update host and viewproviders section with correct logical tree representation ()
Fixes 

PR Close 
2021-06-03 14:33:44 -07:00
Dylan Hunn
47270d9e63 feat(forms): add ng-submitted class to forms that have been submitted. ()
As previously discussed in pull/31070 and issues/30486, this would be useful because it is often desirable to apply styles to fields that are both `ng-invalid` and `ng-pristine` after the first attempt at form submission, but Angular does not provide any simple way to do this (although evidently Angularjs did). This will now be possible with a descendant selector such as `.ng-submitted .ng-invalid`.

In this implementation, the directive that sets control status classes on forms and formGroups has its set of statuses widened to include `ng-submitted`. Then, in the event that `is('submitted')` is invoked, the `submitted` property of the control container is returned iff it exists. This is preferred over checking whether the container is a `Form` or `FormGroup` directly to avoid reflecting on those classes.

Closes .

PR Close 
2021-06-03 13:21:29 -07:00
cindygk
c8e4783d14 docs: offboard misko and annie from contributors page ()
PR Close 
2021-06-03 13:17:45 -07:00
David Shevitz
71fa896a91 docs: update link to jasmine documentation about spies ()
PR Close 
2021-06-03 10:34:23 -07:00