990 Commits

Author SHA1 Message Date
George Kalpakas
f6adc0c3f9 build(docs-infra): update project structure to cli@9 10/12 (tsconfig.json) ()
Update `tsconfig[.*].json`.
Also, all make necessary changes to ensure the example apps can be
successfully built with the new, stricter type-checking options.

PR Close 
2020-03-18 10:00:01 -07:00
Alex Eagle
46fe8fb8b4 build: depend on bazelisk rather than directly on Bazel ()
This has a couple benefits:
- we now use a .bazelversion file rather than package.json to pin the version of bazel we want. This means even if you install bazel on your computer rather than via yarn, you'll still get a warning if your bazel version is wrong.
- you no longer end up downloading three copies of bazel due to bugs in both npm and yarn where they download all tarballs before checking the metadata to see which are usable on the local platform.
- bazelisk correctly handles the tools/bazel trick for wrapping functionality, which we want to use to instrument developer build latencies

PR Close 
2020-03-16 10:58:06 -07:00
Alan Agius
4a9514ec4e docs: remove speeding update ngcc section ()
In version 9.1, this is no longer needed as in the CLI, NGCC async has been integrated which will run during `ng build/ng serve/ng test`.

Reference: TOOL-1340

PR Close 
2020-03-13 07:58:14 -07:00
dishanfernando
146ef48a6e docs: change grammar in architecture guide ()
grammar change for better understanding

PR Close 
2020-03-11 14:46:45 -04:00
JiaLiPassion
c06f9a1ce3 docs(zone.js): update comment and chapter format of ngzone doc. ()
PR Close 
2020-03-06 16:51:43 -05:00
Daniil Gorbunov
d912d4f34c docs: markup mini fix ()
PR Close 
2020-03-06 16:50:10 -05:00
Sonu Kapoor
44f9fa6ce5 docs: add missing closing bracket ()
Closes 
PR Close 
2020-03-06 12:38:30 -05:00
George Kalpakas
8eb4a9d395 docs: fix docs and associated code snippets for enabling more macro tasks in fakeAsync() ()
In the `testing` guide, there is a section discussing configuring
`fakeAsync()` to handle more macro tasks (e.g.
`HTMLCanvasElement#toBlob()`).

Previously, the corresponding code snippets (some of which were
hard-coded in the guide) were incorrect/incomplete and the associated
tests were broken. This was discovered while enabling docs examples unit
tests in .

This commit fixes the code snippets and associated tests and ensures the
examples used in the guide come from an example app (i.e. are not
hard-coded).

Note: The docs examples unit tests are currently not run on CI. This
will be fixed in .

PR Close 
2020-03-02 13:30:25 -08:00
John Ralph Umandal
44e47da4cf docs: reword explanation for using singleton services decorative to be more understandable ()
To understand the current sentence it requires to read it multiple times.
This fix should help developers to understand the sentence in a quicker way.

PR Close 
2020-03-02 09:30:54 -08:00
Aristeidis Bampakos
746e313a76 docs: Fix typo in template syntax ()
Remove unnecessary article from styling precedence

PR Close 
2020-03-02 08:16:06 -08:00
Benjamin Kindle
30f29ee8e7 docs: correct spelling of 'detection' ()
PR Close 
2020-02-27 10:49:15 -08:00
Georgii Dolzhykov
6f68eae9dd docs: more precise docs for template statement syntax ()
PR Close 
2020-02-26 12:44:53 -08:00
JiaLiPassion
bde4cd7982 docs: add documentation of NgZone with zone.js ()
PR Close 
2020-02-26 12:42:59 -08:00
David Shevitz
c414f45ddf docs: update getting started topics to avoid duplicate topic names ()
PR Close 
2020-02-25 13:10:30 -08:00
JiaLiPassion
f9d483e76e feat: add a temp solution to support passive event listeners. ()
Now Angular doesn't support add event listeners as passive very easily.
User needs to use `elem.addEventListener('scroll', listener, {passive: true});`
or implements their own EventManagerPlugin to do that.
Angular may finally support new template syntax to support passive event, for now,
this commit introduces a temp solution to allow user to define the passive event names
in zone.js configurations.

User can define a global varibale like this.

```
(window as any)['__zone_symbol__PASSIVE_EVENTS'] = ['scroll'];
```

to let all `scroll` event listeners passive.

PR Close 
2020-02-24 17:30:04 -08:00
Stephen Fluin
737ec52e9d docs: add more relevant statistic for page load ()
PR Close 
2020-02-24 17:26:40 -08:00
Jeffrey Bosch
3893799183 docs: add amazon s3 builder package ()
PR Close 
2020-02-24 09:13:58 -08:00
Sonu Kapoor
a7d5c55926 docs: fix routing code to use navigate ()
Previously, the example in the `router` guide was not
preserving the query params after logging in.

This commit fixes this by using `navigate` instead of
using `navigateByUrl`, which ignores any properties in
the `NavigationExtras` that would change the provided URL.

Fixes 34917

PR Close 
2020-02-24 09:00:03 -08:00
Miško Hevery
e084835fb1 Revert "feat: support passive event options by defining global variables in zone.js config file ()"
This reverts commit d7d359e3eea93ab4165e69a3622cf4c7f448b56f.
2020-02-21 22:16:34 +00:00
Alex Rickabaugh
4253662231 fix(ivy): add strictLiteralTypes to align Ivy + VE checking of literals ()
Under View Engine's default (non-fullTemplateTypeCheck) checking, object and
array literals which appear in templates are treated as having type `any`.
This allows a number of patterns which would not otherwise compile, such as
indexing an object literal by a string:

```html
{{ {'a': 1, 'b': 2}[value] }}
```

(where `value` is `string`)

Ivy, meanwhile, has always inferred strong types for object literals, even
in its compatibility mode. This commit fixes the bug, and adds the
`strictLiteralTypes` flag to specifically control this inference. When the
flag is `false` (in compatibility mode), object and array literals receive
the `any` type.

PR Close 
2020-02-21 12:36:11 -08:00
JiaLiPassion
d7d359e3ee feat: support passive event options by defining global variables in zone.js config file ()
PR Close 
2020-02-21 09:06:26 -08:00
JiaLiPassion
17b862cf82 feat: add an tickOptions parameter with property processNewMacroTasksSynchronously. ()
This option will control whether to invoke the new macro tasks when ticking.

Close 

PR Close 
2020-02-20 15:14:59 -08:00
Esteban Gehring
c91304f191 docs: add downgraded output kebab-case example ()
PR Close 
2020-02-20 10:55:34 -08:00
Judy Bogart
1b72fc10eb docs: edit displaying-data page to introduce section ()
PR Close 
2020-02-20 10:50:05 -08:00
Chives
d7c4f40171 docs(upgrade): separate AngularJS Material typings to its own block ()
PR Close 
2020-02-18 12:42:19 -08:00
Chives
99fdba0165 docs(upgrade): add instructions for more AngularJS related typings ()
angular-aria is a core AngularJS module packaged separately, and
angular-material is its own thing entirely.

PR Close 
2020-02-18 12:42:19 -08:00
Sonu Kapoor
be5e75c804 docs: change item to items to match the code ()
Closes 

PR Close 
2020-02-14 11:15:07 -08:00
Aristeidis Bampakos
9ca1faf865 docs: Fix minor typos and coding styles ()
- Fix minor typos in the Getting Started, Forms and AOT Compiler guide.
- Fix minor typo in the Tour of Heroes app.
- Fix coding styles in the Getting Started guide and the Tour of Heroes app

PR Close 
2020-02-13 13:31:30 -08:00
Igor Minar
dc63ceb5a3 docs: update release.md and rename 'beta' releases to 'next' ()
also clarify what 'next' releases are.

PR Close 
2020-02-13 10:00:50 -08:00
Sonu Kapoor
6091039223 docs: Rename FAQ to Useful Tips ()
Previously, a section in the FAQ was not clear when discussing a
simple unit test. We also want to move away from question-based
sections. This commit clarified the confusing section and
changed all question-based sections.

Closes 

PR Close 
2020-02-12 16:40:17 -08:00
Judy Bogart
26b17aee14 docs: add asset info to library guide ()
PR Close 
2020-02-07 13:57:18 -08:00
Sonu Kapoor
f7e1c21596 docs: fix awkard space due to margin in sections with alert class ()
PR Close 
2020-02-07 11:36:58 -08:00
Sachin Grover
843b3a2197 docs: missing item variable in structural directives example ()
PR Close 
PR Close 
2020-02-07 11:32:37 -08:00
Oleg Teterin
79742a397f fix(docs-infra): fix parameters with @Optional() decorator do not match declared, optional type ()
PR Close 
2020-02-07 09:58:31 -08:00
David Shevitz
5b80e944be docs: Minor updates to Updating to Angular version 9 topic ()
PR Close 
2020-02-07 09:57:56 -08:00
Schneider
53193c9779 docs: fix typo in glossary ()
PR Close 
2020-02-07 09:57:25 -08:00
Misko Hevery
16eb691e7f docs(ivy): add anchor-node insert before/after difference ()
PR Close 
2020-02-07 09:56:37 -08:00
JiaLiPassion
dc5ac88a19 docs: fix wrong link of tick() ()
PR Close 
2020-02-06 15:35:50 -08:00
Sonu Kapoor
10ad984334 docs: Clarifies code section is a continuation from the section above ()
PR Close 
2020-02-06 15:31:41 -08:00
Stephen Fluin
532ccb647c docs: remove the release schedule from docs ()
Removing for now, since the info is stale, and we need to determine how to adjust the schedule due to the unexpected and significant version 9 delay.

PR Close 
2020-02-06 14:29:21 -08:00
Igor Minar
86db592b5c docs(ivy): add a not about compile-time constants to the ivy compatibility guide ()
PR Close 
2020-02-06 13:53:50 -08:00
Kara Erickson
c286fbb9dc docs(ivy): add size debugging section ()
PR Close 
2020-02-06 09:34:36 -08:00
Kara Erickson
7526ef77b7 docs(ivy): add docs for styling priority order ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
4e9d62ff81 docs(ivy): update style binding docs to v9 behavior ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
a08f6d9795 docs(ivy): clean up class binding docs and update to v9 behavior ()
PR Close 
2020-02-06 09:33:28 -08:00
Kara Erickson
4fc2678438 docs(ivy): document breaking change with host attribute priority ()
PR Close 
2020-02-05 18:22:16 -08:00
Sasha Rudan
1f6da8c7d5 docs: fix typo in router animation ()
`output directive` should be written: `outlet directive`

PR Close 
2020-02-04 15:58:26 -08:00
Sonu Kapoor
7fb66eca25 docs: changes AoT to AOT for consistency ()
PR Close 
2020-02-04 10:43:33 -08:00
Stephen Fluin
e6cb60ee22 docs: update typescript version reference ()
PR Close 
2020-02-04 10:22:48 -08:00
Kapunahele Wong
7369dd6f24 docs: fix animations example/remove 1st person ()
Fixes  and removes first person from transitions-triggers.md

PR Close 
2020-02-04 08:58:04 -08:00