cexbrayat
1f469cd7bb
docs: improve formatDate description ( #29632 )
...
PR #29289 reworded the description, making it less obvious that the value to format can be a `Date`.
PR Close #29632
2019-04-01 15:14:50 -07:00
Jason Aden
e8768acacc
fix(common): escape query selector used when anchor scrolling ( #29577 )
...
When an anchor scroll happens, we run document.querySelector. This value can be taken directly from the user. Therefore it's possible to throw an error on scrolling, which can cause the application to fail.
This PR escapes the selector before using it.
Related to #28193
[Internal discussion](https://groups.google.com/a/google.com/forum/#!topic/angular-users/d82GHfmRKLc )
PR Close #29577
2019-03-29 10:39:38 -07:00
Judy Bogart
333bfa0ffb
docs: api doc for i18n ( #29289 )
...
PR Close #29289
2019-03-29 10:27:42 -07:00
Matias Niemelä
8714daf276
fix(ivy): introduce host-specific styling instructions ( #29292 )
...
This patch is the first of a few patches which separates the
styling logic between template bindings (e.g. <div [style])
from host bindings (e.g. @HostBinding('style')). This patch
in particular introduces a series of host-specific styling
instructions and changes the existing set of template styling
instructions not to accept directives. The underyling code (which
communicates with the styling algorithm) still works as it did
before.
This PR also separates the styling instruction code into a separate
file and moves over all other instructions into an dedicated
instructions directory.
PR Close #29292
2019-03-19 16:33:39 -04:00
Adam Plumer
7b70760c8d
refactor: move DOCUMENT imports from platform-browser to common ( #29237 )
...
PR Close #29237
2019-03-14 16:01:57 -04:00
Pawel Kozlowski
04cf4ef0c7
test(ivy): remove ngComponentOutlet example with a lazy-loaded NgModule ( #29094 )
...
PR Close #29094
2019-03-04 14:41:55 -08:00
Matias Niemelä
cfb2d176f8
feat(ivy): convert [ngStyle] and [ngClass] to use ivy styling bindings ( #28711 )
...
Prior to this fix, both the `NgStyle` and `NgClass` directives made use
of `Renderer2` and this dependency raised issues for future versions of
Angular that cannot inject it. This patch ensures that there are two
versions of both directives: one for the VE and another for Ivy.
Jira Issue: FW-882
PR Close #28711
2019-02-20 13:46:15 -08:00
Judy Bogart
644e7a28d8
docs: add di-related api doc ( #27731 )
...
PR Close #27731
2019-02-13 11:57:37 -08:00
Ben Lesh
a95e81978b
refactor(ivy): Add newer, smaller NgOnChangesFeature ( #28187 )
...
PR Close #28187
2019-01-23 10:59:34 -08:00
Ben Lesh
5552661fd7
refactor(ivy): revert onChanges change back to a feature ( #28187 )
...
- adds fixmeIvy annotation to tests that should remain updated so we can resolve those issues in the subsequent commits
PR Close #28187
2019-01-23 10:59:33 -08:00
Judy Bogart
589dd479e2
docs: add input docs ( #27376 )
...
PR Close #27376
2019-01-22 12:19:28 -08:00
Judy Bogart
661a98aeda
docs: add api doc for ngif ( #27376 )
...
PR Close #27376
2019-01-22 12:19:28 -08:00
Judy Bogart
988243437a
docs: add method doc ( #27377 )
...
PR Close #27377
2019-01-22 12:18:02 -08:00
Judy Bogart
3b9553bb17
docs: expand input descriptions ( #27377 )
...
PR Close #27377
2019-01-22 12:18:02 -08:00
Judy Bogart
b6819fe9bb
docs: add inpur vars doc ( #27377 )
...
PR Close #27377
2019-01-22 12:18:02 -08:00
Judy Bogart
6c3b57a968
docs: add api doc for ngfor ( #27377 )
...
PR Close #27377
2019-01-22 12:18:02 -08:00
Judy Bogart
37f8263430
docs: correct array to map ( #27379 )
...
PR Close #27379
2019-01-22 12:16:45 -08:00
Judy Bogart
a84a9ba705
docs: add input doc ( #27379 )
...
PR Close #27379
2019-01-22 12:16:45 -08:00
Judy Bogart
d73734dcb7
docs: add api doc for ng_style directive ( #27379 )
...
PR Close #27379
2019-01-22 12:16:45 -08:00
Judy Bogart
850b86749c
docs: add api doc for switch directives ( #27378 )
...
PR Close #27378
2019-01-15 10:53:03 -08:00
Misko Hevery
6a9a48b0ac
test: improve symbol-extractor test by ignoring $1 suffix ( #28098 )
...
PR Close #28098
2019-01-14 09:55:30 -08:00
Ben Lesh
8ebdb437dc
fix(ivy): ngOnChanges only runs for binding updates ( #27965 )
...
PR Close #27965
2019-01-11 14:28:35 -08:00
Alan Agius
b61dafaeac
refactor: remove redundant error in catch ( #25478 )
...
PR Close #25478
2019-01-04 15:42:19 -08:00
Judy Bogart
c4f7727408
docs: add api doc for viewport scroller ( #27381 )
...
PR Close #27381
2018-12-26 11:47:16 -08:00
Ruslan Dzhabbarov
7dab458884
docs(common): fix documentation for getLocaleCurrencyName ( #27087 )
...
PR Close #27087
2018-12-14 15:27:03 -08:00
Ingo Bürk
b39efdd9d6
fix(common): KeyValuePipe should return empty array for empty objects ( #27258 )
...
This lets KeyValuePipe return an empty array (rather than undefined)
when the input is empty.
PR Close #27258
2018-12-14 15:19:13 -08:00
Christopher Dahm
d0d351cccb
docs(common): update currencyPipe default digitsInfo values ( #27417 )
...
Change the docs to reflect the actual default values
Fixes #27414
PR Close #27417
2018-12-14 10:26:56 -08:00
cooljeffro
7fae9114c8
docs(common): Fix typo in KeyValuePipe docs ( #27580 )
...
PR Close #27580
2018-12-14 10:21:47 -08:00
Christopher Dahm
f3f2ef4a2a
docs(common): update PercentPipe default maxFractionDigits value ( #27365 )
...
Change the docs to reflect the actual default value
Fixes #27079
PR Close #27365
2018-12-03 08:22:25 -08:00
Pete Bacon Darwin
0918adf39d
docs: common with `@publicApi` tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:53 -07:00
Pete Bacon Darwin
24521f549c
docs: convert all `@experimental` tags to `@publicApi` tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:52 -07:00
Ash Kyd
c9cfcfa728
docs: clarify CurrencyPipe display property ( #25852 )
...
Clarify how to suppress the currency/code in the CurrencyPipe by passing an empty string.
PR Close #25852
2018-10-05 15:42:57 -07:00
Alex Rickabaugh
36d6e6076e
feat(ivy): support template type check narrowing for *ngFor and *ngIf ( #26203 )
...
This commit adds an ngTemplateGuard_ngIf static method to the NgIf
directive and an ngTemplateContextGuard static method to NgFor. The
function of these two static methods is to enable type narrowing
within generated type checking code for consumers of the directives.
PR Close #26203
2018-10-04 10:11:17 -07:00
Pete Bacon Darwin
72dce34f42
docs(common): move `KeyValuePipe` example to `@usageNotes` ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
c08549ae38
docs(common): move `KeyValuePipe` example to `@usageNotes` ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
cf8ad24dcf
docs(common): remove legacy `@whatItDoes` tag ( #26039 )
...
PR Close #26039
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
927323f24e
docs: add missing `@ngModule` tags ( #25734 )
...
PR Close #25734
2018-09-19 16:18:24 -07:00
Judy Bogart
dd5e35ee67
docs: add ngmodule api doc ( #25618 )
...
PR Close #25618
2018-09-19 10:40:58 -07:00
Pete Bacon Darwin
15cc85c54a
style(common): fix short param names ( #23667 )
...
PR Close #23667
2018-08-03 14:09:27 -07:00
Pete Bacon Darwin
725bae1921
docs(common): fix content errors ( #23667 )
...
PR Close #23667
2018-08-03 14:09:27 -07:00
cexbrayat
270176bbe4
docs: more info on currency digits ( #24661 )
...
Adds an example of using the `currency` pipe with a currency that has no cents like CLP,
which will format the amount with no digits if `digitsInfo` is not provided:
<!-- outputs CA$14.00 -->
{{ 14 | currency:'CAD' }}
<!-- outputs CLP14 -->
{{ 14 | currency:'CLP' }}
Amends the docs, adds an example and fix an error with a current example.
PR Close #24661
2018-07-20 10:33:06 -07:00
Victor Berchet
0b4d85e9f1
fix(common): format fractional seconds ( #24844 )
...
fix a bug introduced in #24831
PR Close #24844
2018-07-11 14:32:32 -07:00
Victor Berchet
a527c695aa
fix(common): do not round factional seconds ( #24831 )
...
fixes #24384
PR Close #24831
2018-07-10 18:48:05 -07:00
Sergej
f974c48885
docs: describe rounding behaviour of 'DecimalPipe' ( #24303 )
...
PR Close #24303
2018-07-06 10:13:00 -07:00
Trotyl
ff84c5c4da
fix(common): properly update collection reference in NgForOf ( #24684 )
...
closes #24155
PR Close #24684
2018-06-29 06:43:44 -07:00
Judy Bogart
d244523ae6
docs: test api doc for pipes ( #24141 )
...
PR Close #24141
2018-06-25 09:37:30 -07:00
Rado Kirov
c95437f15d
build(bazel): Turning on strictPropertyInitialization for Angular. ( #24572 )
...
All errors for existing fields have been detected and suppressed with a
`!` assertion.
Issue/24571 is tracking proper clean up of those instances.
One-line change required in ivy/compilation.ts, because it appears that
the new syntax causes tsickle emitted node to no longer track their
original sourceFiles.
PR Close #24572
2018-06-25 07:57:13 -07:00
Pete Bacon Darwin
38a0d1fac5
docs: remove unnecessary `@linkDocs` tags ( #24000 )
...
It is cleaner and simpler to use just a straightforward link.
PR Close #24000
2018-06-13 16:47:40 -07:00
Fabian Wiles
2b49bf77af
feat(common): introduce KeyValuePipe ( #24319 )
...
PR Close #24319
2018-06-13 13:30:49 -07:00
Victor Savkin
49c5234c68
feat(router): implement scrolling restoration service ( #20030 )
...
For documentation, see `RouterModule.scrollPositionRestoration`
Fixes #13636 #10929 #7791 #6595
PR Close #20030
2018-06-08 15:30:52 -07:00