Alex Rickabaugh
f1269d98dc
feat(ivy): input type coercion for template type-checking ( #33243 )
...
Often the types of an `@Input`'s field don't fully reflect the types of
assignable values. This can happen when an input has a getter/setter pair
where the getter always returns a narrow type, and the setter coerces a
wider value down to the narrow type.
For example, you could imagine an input of the form:
```typescript
@Input() get value(): string {
return this._value;
}
set value(v: {toString(): string}) {
this._value = v.toString();
}
```
Here, the getter always returns a `string`, but the setter accepts any value
that can be `toString()`'d, and coerces it to a string.
Unfortunately TypeScript does not actually support this syntax, and so
Angular users are forced to type their setters as narrowly as the getters,
even though at runtime the coercion works just fine.
To support these kinds of patterns (e.g. as used by Material), this commit
adds a compiler feature called "input coercion". When a binding is made to
the 'value' input of a directive like MatInput, the compiler will look for a
static field with the name ngAcceptInputType_value. If such a field is found
the type-checking expression for the input will use the static field's type
instead of the type for the @Input field,allowing for the expression of a
type conversion between the binding expression and the value being written
to the input's field.
To solve the case above, for example, MatInput might write:
```typescript
class MatInput {
// rest of the directive...
static ngAcceptInputType_value: {toString(): string};
}
```
FW-1475 #resolve
PR Close #33243
2019-10-24 09:49:38 -07:00
Igor Minar
c79d6ec502
docs: deprecate esm5 and fesm5 code distribution in our npm packages ( #33360 )
...
See diff for more info.
PR Close #33360
2019-10-23 16:39:36 -07:00
Stefanie Fluin
ba29e4d953
feat(docs-infra): implement figure styles ( #33259 )
...
PR#28396 originally addressed an update via issue #23983 to make images more visible with a white background (implementation of gray "lightbox").
This PR implements those styles defined in PR#28396.
PR Close #33259
2019-10-23 12:59:34 -07:00
ODAVING
1b607529a6
docs: fix spelling error in angular component ( #32971 )
...
change component class section of the docs
Closes #32948
PR Close #32971
2019-10-23 11:46:41 -07:00
Keen Yee Liau
2ecc4c7886
docs: Fix appHighlightColor typo ( #33331 )
...
In the example, there's no directive nor input that's named `appHighlightColor`.
It should be `appHighlight`, referring to the input binding.
PR Close #33331
2019-10-23 11:08:17 -07:00
Kara Erickson
ed4d96f858
docs: add migrating to version 9 guide ( #33339 )
...
This commit adds a guide to AIO navigation for
"Migrating to Version 9" and moves the schematics
section into the guide that previously lived in
the deprecations page. It also pastes a snippet
of the deprecations page in the new guide so users
don't have to filter out deprecations they've seen
before.
Note: Ivy compatibility section is coming up in a
follow-up PR.
PR Close #33339
2019-10-23 09:11:40 -07:00
Kara Erickson
383457f898
docs: clean up deprecation guide ( #33338 )
...
PR Close #33338
2019-10-23 09:11:13 -07:00
cexbrayat
c0b90c2010
docs: update localize migration doc ( #33275 )
...
The error message has been updated in #33199 to mention `ng add @angular/localize`.
This also fixes the tslint config (it needs to mention the complete side effect import).
PR Close #33275
2019-10-23 09:10:01 -07:00
Kapunahele Wong
398ff1e7e7
docs: add ModuleWithProviders deprecation ( #33266 )
...
PR Close #33266
2019-10-22 14:35:27 -07:00
Kapunahele Wong
b3d6d500be
docs: add ngcc postinstall migration doc ( #33328 )
...
PR Close #33328
2019-10-22 14:26:15 -07:00
Kapunahele Wong
1b8b04cf26
docs: add ModuleWithProviders migration doc ( #33085 )
...
PR Close #33085
2019-10-22 12:00:44 -07:00
TinyMan
ec482dadb1
docs: clarrify use of sw behind redirect ( #32915 )
...
Closes #30684
PR Close #32915
2019-10-21 16:50:52 -04:00
David Sánchez
427a1ccd9a
docs: clarify steps in Hosting on Firebase ( #33089 )
...
PR Close #33089
2019-10-21 16:07:04 -04:00
Carlos Ortiz García
717bace7ba
docs(core): Document TestBed.get deprecation ( #32974 )
...
It was replaced by TestBed.inject, documenting such change.
PR Close #32974
2019-10-21 15:54:42 -04:00
Diego Juliao
160547dad6
docs: update deployers table with ngx-deploy-npm ( #33269 )
...
ngx-deploy-npm is a custom deployer to publish Angular libraries to NPM
PR Close #33269
2019-10-21 11:28:18 -04:00
Alan Agius
755a80c7ec
docs: update universal docs for new ivy implementation ( #33040 )
...
PR Close #33040
2019-10-21 11:25:44 -04:00
Judy Bogart
8d44b5edac
docs: edit and organize language service doc ( #33202 )
...
PR Close #33202
2019-10-18 18:19:05 -04:00
Kapunahele Wong
32b042014d
docs: add field decorators to undecorated classes migration ( #33069 )
...
PR Close #33069
2019-10-18 16:31:10 -04:00
Kapunahele Wong
940fbbb014
docs: add localize migration doc ( #33086 )
...
PR Close #33086
2019-10-18 16:30:39 -04:00
crisbeto
1799f621b7
refactor(core): deprecate entryComponents ( #33205 )
...
With Ivy the `entryComponents` array isn't necessary anymore. These changes mark it as deprecated so that it can be removed in a future version.
PR Close #33205
2019-10-18 16:29:23 -04:00
ayazhafiz
c44a1a78a9
docs: add ayaz hafiz as a contributor ( #32975 )
...
PR Close #32975
2019-10-18 14:43:13 -04:00
Amadou Sall
01d3599f32
docs: clarify instructions on where to create the proxy.conf.json file ( #33244 )
...
PR Close #33244
2019-10-18 14:40:57 -04:00
Olivier Combe
9e7668f16b
fix(common): remove deprecated support for intl API ( #29250 )
...
BREAKING CHANGE:
In v5, we deprecated support for the intl API in order to improve the browser support. We are now removing these deprecated APIs for v9. See the original change here for more info on why: #18284 .
PR Close #29250
2019-10-17 20:44:17 -04:00
crisbeto
9d54679e66
test: clean up explicit dynamic query usages ( #33015 )
...
Cleans up all the places where we explicitly set `static: false` on queries.
PR Close #33015
2019-10-17 16:10:10 -04:00
paulceli
3dc6490e72
docs: fix code-example displayed path ( #33228 )
...
PR Close #33228
2019-10-17 14:06:40 -04:00
Mayur Barge
51b9ce44ea
docs: fix typo in getting started guide ( #33185 )
...
Fixes #33181
PR Close #33185
2019-10-16 10:23:01 -04:00
Filipe Silva
ec6a9f2a02
docs: add postinstall script removal to Ivy guide ( #32999 )
...
PR Close #32999
2019-10-15 17:54:39 +00:00
Harinder Singh
0bdb71c122
docs: Update link ( #33166 )
...
Update multi-project workspace link
weblink on the angular.io website was not working, therefore, updated the multi-project workspace link.
PR Close #33166
2019-10-15 16:52:31 +00:00
Alexander von Weiss
a86893c10f
docs: use neutral domain name in i18n example ( #33146 )
...
PR Close #33146
2019-10-15 16:50:01 +00:00
Grigoriy Beziuk
a9228aabac
docs: a typo fixed in the upgrade guide ( #33054 )
...
PR Close #33054
2019-10-14 23:46:22 +00:00
Yulia Tsareva
5265b74138
docs: fix typo in guide ( #33155 )
...
PR Close #33155
2019-10-14 23:43:29 +00:00
Harinder Singh
127cec0214
docs: add command for creating angular workspace ( #32804 )
...
Improved documentation
Add command to create Angular workspace, it is required for executing `ng generate library <my-lib>` .
PR Close #32804
2019-10-14 16:32:46 +00:00
Benjamin Liii
4b30108734
docs: add note to build Angular locally ( #31053 )
...
I got the compiled failed error when I followed the tutorial, which should be informed in advance as there are people who might not know the dependency in the package.json if they have no former relevant experience.
PR Close #31053
2019-10-14 16:31:52 +00:00
Kapunahele Wong
c88305d2eb
docs: add Injectable migration docs ( #32581 )
...
PR Close #32581
2019-10-11 15:46:12 -07:00
crisbeto
0b1daa9ebd
refactor(forms): remove ngForm element selector ( #33058 )
...
Removes the deprecated `ngForm` element selector and all of the code related to it.
BREAKING CHANGES:
* `<ngForm></ngForm>` can no longer be used as a selector. Use `<ng-form></ng-form>` instead.
* The `NgFromSelectorWarning` directive has been removed.
* `FormsModule.withConfig` has been removed. Use the `FormsModule` directly.
PR Close #33058
2019-10-11 15:43:56 -07:00
Adam J. Penn
c8fd94ea44
style(router): removed extra semicolon ( #33062 )
...
PR Close #33062
2019-10-10 15:26:20 -07:00
Danny Skoog
6ab5f3648a
refactor: utilize type narrowing ( #33075 )
...
PR Close #33075
2019-10-10 15:18:44 -07:00
Amadou Sall
1ae77da609
docs: update Stackblitz example for lazy-loading ( #33070 )
...
PR Close #33070
2019-10-10 15:17:32 -07:00
Amadou Sall
100ba0bd06
docs: align the lazy-loading guide to what's generated by the CLI ( #33070 )
...
PR Close #33070
2019-10-10 15:17:32 -07:00
Yulia Tsareva
676a95a21c
docs: fix typo in guide ( #32893 )
...
PR Close #32893
2019-10-10 13:54:58 -07:00
John Ralph Umandal
a3ef3e11c4
docs: changed 'function' word in to 'steps' ( #32211 )
...
changed word for better method's interpretation.
PR Close #32211
2019-10-10 13:54:23 -07:00
John Ralph Umandal
57d099ceea
docs: fixed a misleading sentence ( #32211 )
...
Reading this sentence, make the reader think that the second argument strictly accepts one single animate, which is not
PR Close #32211
2019-10-10 13:54:23 -07:00
crisbeto
2265cb5938
refactor(core): remove deprecated Renderer ( #33019 )
...
Removes the `Renderer` and related symbols which have been deprecated since version 4.
BREAKING CHANGES:
* `Renderer` has been removed. Use `Renderer2` instead.
* `RenderComponentType` has been removed. Use `RendererType2` instead.
* `RootRenderer` has been removed. Use `RendererFactory2` instead.
PR Close #33019
2019-10-08 09:23:00 -07:00
Danny Skoog
c507dda21a
docs: correct sentence in AoT compiler guide ( #33020 )
...
PR Close #33020
2019-10-07 13:13:57 -07:00
Santosh Yadav
0ce8621196
docs: add dotnettricks to training ( #32771 )
...
PR Close #32771
2019-10-07 11:03:03 -07:00
JiaLiPassion
53d13c3fc6
refactor: rename unpatched event flag in Zone from `BLACK_LISTED_EVENTS` to `UNPATCHED_EVENTS` ( #29617 )
...
Closes #28529
PR Close #29617
2019-10-04 08:44:58 -07:00
Showtim3
052cae6427
docs: fix typo in attribute-directives.md ( #32943 )
...
Fixes #32924
PR Close #32943
2019-10-02 14:30:50 -07:00
Jakub Pawlot
e7729b6863
docs: add comment about newEvent utility function ( #32001 )
...
PR Close #32001
2019-10-02 13:28:38 -07:00
Kai Röder
3de59d48b5
docs(docs-infra): use recommended type assertion ( #31042 )
...
Angular uses tslint:recommended by default. The default for no-angle-bracket-type-assertion is true
See https://github.com/palantir/tslint/blob/master/src/configs/recommended.ts#L69
PR Close #31042
2019-10-02 13:25:39 -07:00
Nikita Potapenko
3c7ac5f835
docs: add ngOnInit description ( #32789 )
...
PR Close #32789
2019-10-02 13:24:30 -07:00
Judy Bogart
70429bf350
docs: add lib build note ( #32940 )
...
PR Close #32940
2019-10-02 10:59:05 -07:00
Jordan Amman
448749cafa
docs: added '>' to ng-template closing tag. ( #32939 )
...
Fixes #32931
PR Close #32939
2019-10-02 09:44:23 -07:00
Alan Agius
5d5c94d83a
feat(service-worker): remove deprecated `versionedFiles` option ( #32862 )
...
BREAKING CHANGE:
Remove deprecated option `versionedFiles` from service worker asset group configuration in `ngsw-config.json`
Before
```json
"assetGroups": [
{
"name": "test",
"resources": {
"versionedFiles": [
"/**/*.txt"
]
}
}
]
```
After
```json
"assetGroups": [
{
"name": "test",
"resources": {
"files": [
"/**/*.txt"
]
}
}
]
```
PR Close #32862
2019-10-02 09:30:59 -07:00
Kapunahele Wong
206fb82330
docs: add dynamic queries flag migration documentation ( #32582 )
...
PR Close #32582
2019-10-01 17:19:05 -07:00
Judy Bogart
088435c5eb
docs: emphasize headers for code examples ( #32938 )
...
PR Close #32938
2019-10-01 14:45:29 -07:00
Joshua Colvin
32b6548be9
docs: fix capitalization in elements docs ( #32917 ) ( #32936 )
...
PR Close #32917
PR Close #32936
2019-10-01 14:44:49 -07:00
Gérôme Grignon
b3549e6680
docs: fix typo in creating-libraries ( #32930 )
...
PR Close #32930
2019-10-01 10:59:01 -07:00
Hoel IRIS
45c893d0e1
docs(service-worker): add info about recovering from degraded Driver state ( #32682 )
...
Related to #31865
PR Close #32682
2019-09-30 14:15:35 -07:00
Judy Bogart
d5071651df
docs: add filename headers to code examples ( #32701 )
...
PR Close #32701
2019-09-30 10:28:20 -07:00
Judy Bogart
8985233804
docs: add prompts section to schematic guide ( #32728 )
...
PR Close #32728
2019-09-30 10:27:38 -07:00
Yulia Tsareva
877f9ad7b9
docs: add missing space between "Component" and "will" in guide ( #32885 )
...
Closes angular/angular#32873
PR Close #32885
2019-09-27 15:59:29 -07:00
john li
5ae48d52e6
docs: fix typo in deployment guide ( #32777 )
...
The typo causes most of the callout to not appear on the page. The issue
appears at the bottom of the "Lazy loading" section on the live site:
https://angular.io/guide/deployment#lazy-loading
PR Close #32777
2019-09-27 10:32:38 -07:00
Harinder Singh
278d634723
docs: correct spelling of HTMLTableCellElement in Template Syntax ( #32805 )
...
Spelling Correction in Docs
Corrected spelling; From `HTMLTableCellElment` to `HTMLTableCellElement`.
PR Close #32805
2019-09-27 10:03:52 -07:00
Reuben Wilson
f6914159e4
docs: fix sentence phrasing ( #32846 )
...
`In this section, you'll add a "Buy" button the product details page.` -> `In this section, you'll add a "Buy" button to the product details page.`
PR Close #32846
2019-09-27 10:03:22 -07:00
Jordan Amman
2e730287fb
docs: clarify sentence in lifecycle hooks doc ( #32860 )
...
PR Close #32860
2019-09-27 10:02:54 -07:00
Rustam
c07b6fece5
docs: added link to ngRuAir podcast ( #32223 )
...
PR Close #32223
2019-09-26 07:37:54 -07:00
Issei Horie
3a96631387
docs: removed duplicated spaces in upgrade guide ( #32813 )
...
PR Close #32813
2019-09-24 14:01:42 -07:00
Issei Horie
c093390c22
docs: fix typo in upgrade guide ( #32807 )
...
PR Close #32807
2019-09-24 14:01:18 -07:00
Kapunahele Wong
04ddcfecd8
docs: edit copy on getting started step 1 ( #32773 )
...
PR Close #32773
2019-09-19 14:20:50 -07:00
Kapunahele Wong
5c2e890d76
docs: edit copy on first step of getting started ( #32751 )
...
PR Close #32751
2019-09-18 13:36:59 -07:00
Aristeidis Bampakos
cd4021ba41
docs: Typo fixes in hierarchical DI guide ( #32536 )
...
Introduce minor typo fixes in the guide for hierarchical dependency injection
PR Close #32536
2019-09-17 13:37:53 -07:00
Judy Bogart
4c061271db
docs: add autoprefixer backward compatability instruction ( #32109 )
...
PR Close #32109
2019-09-16 10:48:02 -07:00
Kapunahele Wong
bd679581e2
docs: add undecorated classes migration faq ( #32478 )
...
PR Close #32478
2019-09-12 12:16:14 -07:00
Kapunahele Wong
222af38462
docs: move renderer2 deprecation guide into own file ( #32626 )
...
PR Close #32626
2019-09-12 10:42:59 -07:00
Judy Bogart
5cf597249c
docs: modify lazy-load module instructions for new cli flag ( #32588 )
...
PR Close #32588
2019-09-12 10:23:18 -07:00
Judy Bogart
a32df388f8
docs: fix doc links to current version ( #32566 )
...
PR Close #32566
2019-09-11 19:27:00 -04:00
Judy Bogart
8a911773b8
docs: add header to code examples ( #32563 )
...
PR Close #32563
2019-09-11 19:26:19 -04:00
idzark
79b673a17f
docs: add mdb angular boilerplate to docs resources ( #30448 )
...
PR Close #30448
2019-09-10 17:22:31 -04:00
Kapunahele Wong
25d90dabbe
docs: port accessibility app from stackblitz to aio ( #32377 )
...
Fixes #32320
PR Close #32377
2019-09-10 13:11:48 -04:00
Tom Kwong
e38351fce7
docs: fixed typo for toh-pt5.md ( #32362 )
...
PR Close #32362
2019-09-10 13:03:36 -04:00
Trevor Karjanis
5b2408f0a6
docs: fix typos in the routing and testing documentation ( #32329 )
...
PR Close #32329
2019-09-10 07:58:44 -04:00
Phaneendra
2230dfaea7
docs: describe your change... ( #32552 )
...
Properly Closed Bracket for the header
PR Close #32552
2019-09-10 06:30:05 -04:00
Carlos Ortiz García
9166baf709
refactor(core): Migrate TestBed.get to TestBed.inject ( #32382 )
...
This is cleanup/followup for PR #32200
PR Close #32382
2019-09-09 19:10:54 -04:00
Leonardo Zizzamia
66df745721
docs: add NG Rome MMXIX to Events resources ( #31500 )
...
PR Close #31500
2019-09-09 15:56:23 -04:00
Kapunahele Wong
33038f6ebe
docs: edit copy and example in hierarchical injectors guide ( #32501 )
...
Fixes #32461
PR Close #32501
2019-09-06 18:28:42 -04:00
Dominik Pieper
8ae7f14252
docs: add akita to the list of data libraries ( #32505 )
...
PR Close #32505
2019-09-06 14:58:16 -04:00
Timar
4c3674f660
docs: expand abbreviation in providers guide ( #32400 )
...
The intro paragraph currently uses the DI abbreviation,
but it is clearer with DI written out and linked to the DI guide.
PR Close #32400
2019-09-05 18:59:55 -04:00
Potapy4
36d613dd67
docs: update default path for xi18n ( #32480 )
...
PR Close #32480
2019-09-05 13:34:18 -04:00
alexzuza
e505fa61f3
docs: add Alexey Zuev to GDE resources ( #32440 )
...
PR Close #32440
2019-09-05 13:34:01 -04:00
John Ralph Umandal
cc06153e85
docs: added note in animation keyframe offset ( #32350 )
...
Not mentioned in the docs.
Whenever offset property is used inside a keyframe's step at least once, then it must be defined to all the steps.
When read the first time, I supposed that the API automatically sets an even offset to the remaining not defined offsets, which is not
PR Close #32350
2019-09-05 13:33:26 -04:00
AMarinov
01e0f58dd6
docs: Updating the Ignite UI for Angular url ( #32417 )
...
PR Close #32417
2019-09-04 11:51:40 -07:00
Mirco Widmer
cfa09b84dd
docs: fix typo in structural directive example ( #32459 )
...
Fixes #32458
PR Close #32459
2019-09-04 11:36:02 -07:00
Alan
e213080c0b
docs: add app-shell production reference ( #32471 )
...
PR Close #32471
2019-09-04 11:34:17 -07:00
Tiep Phan
04d4fea3e8
docs: correct @ngtools/webpack url ( #32407 )
...
Fixes #32385
PR Close #32407
2019-09-03 12:00:19 -07:00
Kirk Larkin
d0b3688a23
docs: removed duplicate "compilerOptions" property ( #32449 )
...
PR Close #32449
2019-09-03 11:57:32 -07:00
Santosh Yadav
9bbe67f286
docs: add clarification regarding development in older browsers in Deployment guide ( #32210 )
...
Fixes #32199
PR Close #32210
2019-08-30 13:53:11 -04:00
Issei Horie
03cbce8c66
docs: fix typo in compiler options guide ( #32348 )
...
PR Close #32348
2019-08-29 12:35:25 -07:00
Amadou Sall
0a09fb1432
docs: fix a minor typo in the HTTP guide ( #32359 )
...
"of typed" should be "of type"
PR Close #32359
2019-08-28 09:40:09 -07:00
Judy Bogart
2f6062f632
docs: fix callout header ( #32325 )
...
PR Close #32325
2019-08-28 09:06:07 -07:00
Judy Bogart
e3f42818e9
docs: add detail to router event doc ( #32140 )
...
PR Close #32140
2019-08-27 16:17:06 -07:00