3640 Commits

Author SHA1 Message Date
Judy Bogart
c29f830c4b docs: correct left nav toc to remove duplicated page links ()
The major sections Angular Libraries, Schematics, and CLI Builders appear twice, in their old location under Techniques, and in the new correct location under Extending Angular

PR Close 
2020-06-29 12:19:28 -07:00
nobobo1234
cde4653c62 docs: Changing typo Stacblitz into Stackblitz in the Tour of Hereos tutorial docs page ()
Changing the typo of Stacblitz into Stackblitz in the tour of hereos tutorial docs page since that is the actual name of the service

PR Close 
2020-06-29 12:17:40 -07:00
Maksymilian Sielicki
e07d940b9b docs: remove first person from 2 sentences ()
This commit removes two instances of the first person in the
Dependency injection providers documentation.

PR Close 
2020-06-29 12:17:04 -07:00
Amadou Sall
ee1526029f docs: add Amadou Sall to GDE page ()
This commit adds Amadou Sall to the Angular GDE page along with a
biography, his role at Air France, and a photograph.

PR Close 
2020-06-29 12:16:22 -07:00
Nick Hodges
f954ab6f10 docs: add note about the month being zero-based in the Date constructor ()
Because the month is zero based, it may confuse some users that '3'
is in fact 'April'. This comment should clear that up.

PR Close 
2020-06-26 09:55:18 -07:00
George Kalpakas
eee2fd22e0 ci(docs-infra): store JS bundles as CI artifacts to debug size check flakes ()
As reported in , the size of the main angular.io bundle sometimes
ends up bigger than expected on CI. This usually goes away after
rerunning the job a couple of times.

It is unclear what is causing this. In order to help debug the issue,
this commit stores the JS files that are checked as part of the aio
payload-size check as CI artifacts, where they can be retrieved from and
inspected.

PR Close 
2020-06-25 17:29:35 -07:00
Gui Seek
9c668e091f docs(elements): fixed command that adds the package @angular/elements ()
I was using schematics with the `--name` parameter instead of the `--project`, I did both ways before sending and my suspicion about outdated documentation was confirmed

PR Close 
2020-06-25 17:07:29 -07:00
Edric Chan
b2816a1536 docs: typo fixes for schematics-for-libraries.md ()
Addresses small typos such as extra whitespaces.

This change was extracted from .
This change was extracted from .
This change was extracted from .

PR Close 
2020-06-25 17:06:37 -07:00
Igor Minar
4c7f32f28c fix(docs-infra): fix deploy-to-firebase.sh for master and v10.0.x branches ()
The deployment to aio is currently failing because  introduced
"project" entry into the firebase.json which means that we now need to
select the deployment target before deploying to firebase.

This change fixes the issue and refactors the file to be easier to read.

I also added extra echo statements so that the CI logs are easier to
read in case we need to troubleshoot future issues.

PR Close 
2020-06-25 17:03:24 -07:00
Igor Minar
0e3e9cd382 fix(docs-infra): fix typo in the deploy-to-firebase.sh script ()
This typo caused the script to fail on Linux (interestingly it works fine on Mac).

This is a painful reminder that we should not write any more Bash scripts EVER. shelljs FTW! :-)

PR Close 
2020-06-25 15:21:24 -07:00
Sonu Kapoor
2b2146bc58 docs: Uses correct component in the MessageService ()
This commit uses the correct component (`HeroesComponent`) in the.
`MessageService`. Previously, the `MessageService` was using
`HeroeService`.

Closes 

PR Close 
2020-06-25 13:48:59 -07:00
Igor Minar
3a698e2d08 feat(docs-infra): update deploy-to-firebase.sh script to support v9 multisite setup ()
v9.angular.io was used to pilot the firebase hosting multisites setup for angular.io.

The deployments so far have been done manually to control the deployment process.

This change, automates the deployment for v9.angular.io so that future deployments can be made from
the CI.

See https://angular-team.atlassian.net/browse/DEV-125 for more info.

In the process of updating the scripts I rediscovered a bug in the deploy-to-firebase.sh script that
incorrect compared two numbers as strings. This previously worked correctly because we were comparing
single digit numbers. With the release of v10, we now compare 9 > 10 which behaves differently for
strings and numbers. The bug was fixed by switching to an arithmetic comparison of the two variables.

This bug has been fixed on the master branch but not on the 9.1.x branch. I realized this during the
rebase, but found my version to be a bit cleaner, so I kept it.

PR Close 
2020-06-25 13:44:52 -07:00
Keen Yee Liau
1c1eb3045c docs: Add support schedule for v10 ()
This commit adds the support schedule for v10.
v10.0.0 was released on June 24, 2020.
Active support ends six months later, on Dec 24, 2020.
Long term support ends a year after that, on Dec 24, 2021.

PR Close 
2020-06-25 11:49:17 -07:00
Trung Vo
666e6d15fa docs: Replace $emdash; with an actual em dash ()
fix documentation in the lifecycle hooks guide where $emdash; was not being replaced by an actual em dash (-)

PR Close 
2020-06-25 11:41:54 -07:00
Ajit Singh
8924ec1474 test(docs-infra): add end to end tests for api reference ()
Api search functionality only had unit tests @gkalpak suggested we should have some e2e tests too. Added some end to end tests.

Fixes 

PR Close 
2020-06-25 11:36:02 -07:00
Igor Minar
4481bebb38 docs: add v9.angular.io to the angular.io version picker ()
Now that v10 is out, it's time to add the v9.angular.io link to the version picker, so here we go...

PR Close 
2020-06-24 19:53:24 -07:00
Igor Minar
243824ef74 docs: updating guides and docs related to the v10 release ()
Mostly just adding links to the migrations that were missing, adding the migrations into the navbar,
as well as correcting the @angular/bazel removal in the update guide.

I also added a commented out preamble for the release notes.

PR Close 
2020-06-24 09:37:34 -07:00
Judy Bogart
c95802f26f docs: add lightweight token page to library section of docs ()
adds new DI technique recommendation for libraries to ensure tree-shaking for unused services
includes reasons for packaging schematics with libraries, clarify schematic usage recommendation

PR Close 
2020-06-23 16:34:51 -07:00
Charles Lyding
71c0363bb5 docs: add tslib update migration docs ()
This adds documentation for the v10.0 tooling migration `update-libraries-tslib` contained within the `@schematics/angular` package.

PR Close 
2020-06-23 13:07:39 -07:00
Charles Lyding
e03adaf9b0 docs: add module/target compiler option migration docs ()
This adds documentation for the v10.0 tooling migration `update-module-and-target-compiler-options` contained within the `@schematics/angular` package.

PR Close 
2020-06-23 12:46:22 -07:00
George Kalpakas
38dfbc775f ci(docs-infra): disable flaky tests ()
I could not figure out the root cause of the flakes, so disabling the
flaky tests for now. See
https://github.com/angular/angular/pull/37637#issuecomment-647608149 for
more info.

Fixes 

PR Close 
2020-06-23 12:45:11 -07:00
David Shevitz 🔵
5229809adb docs: Initial commit of update guide for v10 release. ()
This update includes modifications to the navigation.json file to
remove unneeded migration guides.

TODO: Redirects from v9 topics to v10; links to removed migration
guides need to point to v9.angular.io.

PR Close 
2020-06-23 11:56:49 -07:00
Charles Lyding
9d88ca07f8 docs: add solution-style tsconfig migration docs ()
This adds documentation for the v10.0 tooling migration `solution-style-tsconfig` contained within the `@schematics/angular` package.

PR Close 
2020-06-23 11:55:01 -07:00
David Shevitz 🔵
cb566add3c docs: Add content for new strict mode for Angular CLI ()
In v10, the Angular CLI supports a strict mode, which turns
on additional flags for the TypeScript and Angular compilers.

PR Close 
2020-06-22 16:29:15 -07:00
Paul Gschwendtner
3a418ab63b docs: fix invalid anchor for CLI flags in deprecation guide ()
75218342967591627ee44b73999a4cfd52fb5470 added content for CLI
deprecations to the `angular.io` deprecations guide. It looks
like the anchor for the CLI deprecations is incorrect and
ends up showing up as code in the guide.

This commit fixes the anchor so that it doesn't show
up as code in the guide.

PR Close 
2020-06-22 10:57:16 -07:00
Tony Bove
7e0eccc4ef docs: Refactor-i18n ()
Rewrite headings to focus on tasks and separate reference info and best practices from tasks. Add missing steps or procedures, and links to important information. Make the example open in StackBlitz. See i18n Documentation Plan at https://docs.google.com/document/d/1aV2TKsIqry7JnNiHEfhmheu5rNAbNl1IRYVhYErc7Ks/edit?usp=sharing

PR Close 
2020-06-22 10:52:59 -07:00
Sonu Kapoor
1197965e69 docs: move ng-vikings 2020 to the already presented section ()
This commit moves the ng-vikings 2020 event from the currently presenting
section into the already presented section.

PR Close 
2020-06-17 11:18:47 -07:00
Alan Agius
f5e39999d7 docs: add side effect package.json in app structure ()
With this change we add the special `package.json` which is used to mark the application free of non-local side-effects in the application source files section

PR Close 
2020-06-16 11:57:40 -07:00
Alan Agius
ff33ab1379 docs: @angular/language‑service is no longer a dev-dependencies ()
`@angular/
language‑service` is no longer needed as a dev-dependencies, infact we no longer generate project with this dependency as it can conflict with the https://marketplace.visualstudio.com/items?itemName=Angular.ng-template

PR Close 
2020-06-16 11:57:39 -07:00
David Shevitz 🔵
7521834296 docs: add new section for CLI deprecations ()
Current documentation does not list CLI flag deprecations. This
change adds it for v10.

PR Close 
2020-06-16 11:57:04 -07:00
George Kalpakas
a7faa6bb65 docs(service-worker): minor fixes/improvements in the SW Communication guide ()
This commit includes various fixes/improvements for the
"Service worker communication" guide.

This partially addresses .

PR Close 
2020-06-15 09:48:55 -07:00
George Kalpakas
bcc0a035cc docs(service-worker): update default value of SwRegistrationOptions#registrationStrategy ()
The default value was changed from `registerWhenStable` to
`registerWhenStable:30000` in 29e8a64cf02fa9b80d38c30091e0b730403c54c8,
but the decumentation was not updated to reflect that.

This commit updates the documentation to mention the correct default
value.

PR Close 
2020-06-15 09:48:55 -07:00
David Shevitz 🔵
adc9d5cdcb docs: describe how to configure CommonJS modules ()
In version 10, we have a new option for the `angular.json` file,
`allowedCommonJsDependencies`, so users can opt in to support
CommonJS modules.

PR Close 
2020-06-15 09:40:44 -07:00
Sonu Kapoor
d330cd85ac refactor: move hover into a proper @media hover ()
This commit moves the contributor hover into the `@media(hover:hover)`
query. This will help to identify if the user's primary input mechanism
can hover over elements.

PR Close 
2020-06-15 09:39:17 -07:00
David Shevitz 🔵
09d6dc50ef docs: Update documentation to reflect addition of tsconfig.base.json. ()
In version 10, there is a new `tsconfig.json` file, which contains
the paths to all other `tsconfig` files used in a workspace. The
previous `tsconfig.json` file still exists, but has been renamed to
`tsconfig.base.json`.

In addition to documenting this change, I have updated files that
refer to TypeScript configuration files generically to remove specific
references to `tsconfig.json.` This should help avoid confusing users.

PR Close 
2020-06-15 09:37:00 -07:00
Jesse Lucas
ae4f81cbab docs: Change 'function' to 'method' for clarity that getHereos() is ()
intended as a class method

Change 'function' to 'method' for clarity that getHereos() is
intended as a class method in Tour of Heroes part 4.

PR Close 
2020-06-15 09:07:51 -07:00
Alan Agius
8dcf618411 docs: add redirects for cli generated config files ()
With this change we add redirects for config files generated by the Angular CLI. These links form part of a comment in the generated files, thus it is important that they valid for the many years to come.

PR Close 
2020-06-12 08:51:24 -07:00
Kishan Gajera
7cc7955b5d docs: fix contributor website links with no protocol ()
Two contributor website links do not have a protocol so they are treated as a relative URL and do not work as expected.

PR Close 
2020-06-12 08:50:52 -07:00
Ajit Singh
a075260751 docs: document how external link icons work ()
After PR  which added icons to all external links. Documented how this is happening via comments in scss file. For details visit PR 

PR Close 
2020-06-12 08:50:18 -07:00
Moritz Obermeier
fe0782afa9 docs: small change in the Introduction ()
The word "both" is automatically connected with the previous two bullet points and not the following two (because documents are usually read from top to bottom), which made the original sentence confusing for first time readers.

PR Close 
2020-06-11 19:11:56 -07:00
rch850
3545520e81 docs: fix result of sanitization example ()
This commit fixes sanitization example
in https://angular.io/guide/template-syntax#content-security.

* Escape < and > of interpolation result.
* Fix result of property binding result.

PR Close 
2020-06-11 19:11:23 -07:00
Tony Bove
5ea9119322 docs: make correction in Tutorial toh-pt6 ()
Fixes issue [29535](https://github.com/angular/angular/issues/29535) for the tutorial (toh-pt6) to remove the phrase that directed the reader to delete mock-heroes.ts when it is still needed for further tutorial steps.

PR Close 
2020-06-11 19:10:48 -07:00
David Shevitz 🔵
12f2101d08 docs: add link to Angular component/material changelog. ()
At present, users don't have an easy way to discover what
deprecations occurred for Angular CDK or Angular Material.
This change adds a link to the changelog to the deprecations.md
file.

PR Close 
2020-06-11 19:04:12 -07:00
David Shevitz 🔵
c5493c192c docs: differential loading is opt-in ()
With version 10, differential loading changes from `opt-out` to `opt
in`. This change updates the documentation accordingly.

PR Close 
2020-06-11 19:02:58 -07:00
Tony Bove
7259208893 docs: Refactor-pipes ()
Language tightened, and headings rewritten to focus on user tasks. Tasks now separated from concepts, and clarified as examples. Content is up-to-date and complete. Links to important information and relevant topics added.

PR Close 
2020-06-11 18:45:15 -07:00
Alan Agius
5dba3bf1fd build: update CLI packages to the latest RC version for v10 ()
With this change we update the Angular CLI repo and aio packages to the latest RC version for version 10.

PR Close 
2020-06-11 12:05:33 -07:00
JiaLiPassion
583a9d38a1 feat(zone.js): upgrade zone.js to angular package format(APF) ()
Close 

In the current version of zone.js, zone.js uses it's own package format, and it is not following the rule
of Angualr package format(APF), so it is not easily to be consumed by Angular CLI or other bundle tools.
For example, zone.js npm package has two bundles,

1. zone.js/dist/zone.js, this is a `es5` bundle.
2. zone.js/dist/zone-evergreen.js, this is a `es2015` bundle.

And Angular CLI has to add some hard-coding code to handle this case, o5376a8b139/packages/schematics/angular/application/files/src/polyfills.ts.template (L55-L58)

This PR upgrade zone.js npm package format to follow APF rule, https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx

The updated points are:

1. in package.json, update all bundle related properties

```
  "main": "./bundles/zone.umd.js",
  "module": "./fesm2015/zone.js",
  "es2015": "./fesm2015/zone.js",
  "fesm2015": "./fesm2015/zone.js",
```

2. re-organize dist folder, for example for `zone.js` bundle, now we have

```
  dist/
      bundles/
             zone.js            // this is the es5 bundle
      fesm2015/
             zone.js            // this is the es2015 bundle (in the old version is `zone-evergreen.js`)
```

3. have several sub-packages.

1. `zone-testing`, provide zone-testing bundles include zone.js and testing libraries
2. `zone-node`, provide zone.js implemention for NodeJS
3. `zone-mix`, provide zone.js patches for both Browser and NodeJS

All those sub-packages will have their own `package.json` and the bundle will reference `bundles(es5)` and `fesm2015(es2015)`.

4. keep backward compatibility, still keep the `zone.js/dist` folder, and all bundles will be redirected to `zone.js/bundles` or `zone.js/fesm2015` folders.

PR Close 
2020-06-11 11:08:48 -07:00
Stewart Rand
1fce6d6bae docs: Minor grammar fix: "bug-free" ()
Change documentation to a more grammatically correct format. "bug-free" is preferred over "bug free".

PR Close 
2020-06-11 11:07:54 -07:00
Stephen Fluin
39f973430a docs: remove out of date GDEs ()
Periodic documentation cleanup of GDEs which are no longer in the Angular program.

Removed:
 - "Filip Bruun Bech-Larsen"
 - "Vinci Rufus"
 - "Jeff Cross"

PR Close 
2020-06-11 11:04:11 -07:00
Mike Huang
d76a872efb docs: add Mike Huang as a GDE ()
Update the GDE listing with info abbout Mike Huang.
Update the GDE listing with info abbout Mike Huang.

PR Close 
2020-06-10 11:53:25 -07:00