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
Miško Hevery
08a18b82de
refactor(common): Remove ngOnChanges from NgForOf ( #23378 )
...
`NgForOf` used to implement `OnChanges` and than use
`ngOnChanges` callback to detect when `ngForOf` binding
changed to update the differ. We now do the checking
manually which puts less pressure on the runtime to do
the bookkeeping and should result in minor perf improvement.
PR Close #23378
2018-06-04 13:24:43 -07:00
swseverance
fe3679a356
style: remove empty comments ( #23404 )
...
PR Close #23404
2018-05-10 15:48:13 -07:00
Olivier Combe
ce40e85cbb
refactor(common): update CLDR data to v33.0.0 ( #23265 )
...
PR Close #23265
2018-04-11 15:34:46 -07:00
Olivier Combe
5706810af2
fix(common): replace i18n locale undefined values by a const ( #23265 )
...
Fixes #22988
PR Close #23265
2018-04-11 15:34:46 -07:00
Pete Bacon Darwin
4b96a58c5a
docs: remove all deprecated @stable
jsdoc tags ( #23210 )
...
These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.
PR Close #23210
2018-04-10 21:49:32 -07:00
Pete Bacon Darwin
381da1af45
build(aio): move "optional" and "default" to end of param description ( #23062 )
...
PR Close #23062
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
cdd05bd2ca
docs(common): move Pipe param docs to transform
function ( #23062 )
...
PR Close #23062
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
079d8e57d5
docs(common): migrate @whatItDoes
tags to the description ( #23062 )
...
We get the overview for the doc by splitting off the first
paragraph.
PR Close #23062
2018-04-05 09:25:15 -07:00
Pete Bacon Darwin
46ba7f69dd
docs(common): migrate @howToUse
tags ( #23062 )
...
In pipes the content of these tags is now generated automatically.
In directives these tags have been converted to `@usageNotes` tags,
but in the future me might find a way to generate that usage too.
PR Close #23062
2018-04-05 09:25:15 -07:00
Pawel Kozlowski
aaefd51a88
refactor(common): simplify NgClass code, add comments ( #21937 )
...
PR Close #21937
2018-04-04 09:41:17 -07:00
Pawel Kozlowski
4a426696c9
fix(common): properly take className changes into account ( #21937 )
...
Fixes #21932
PR Close #21937
2018-04-04 09:41:16 -07:00
Veres Lajos
de90314304
style: typos fixed - https://github.com/vlajos/misspell-fixer ( #22975 )
...
PR Close #22975
2018-03-27 14:51:53 -04:00
sergeome
7966744a44
fix(common): titlecase pipe ( #22600 )
...
PR Close #22600
2018-03-23 13:42:51 -04:00
Igor Minar
b43f8bc7d3
feat(core): upgrade rxjs to 6.0.0-alpha.4 ( #22573 )
...
PR Close #22573
2018-03-19 21:51:51 -07:00
Olivier Combe
4180912538
feat(common): export functions to format numbers, percents, currencies & dates ( #22423 )
...
The utility functions `formatNumber`, `formatPercent`, `formatCurrency`, and `formatDate` used by the number, percent, currency and date pipes are now available for developers who want to use them outside of templates.
Fixes #20536
PR Close #22423
2018-02-23 15:27:10 -08:00
Victor Berchet
8115edc82f
fix(common): then and else template might be set to null ( #22298 )
...
PR Close #22298
2018-02-18 19:25:28 -08:00
Trotyl
67cf11d071
feat(common): better error message when non-template element used in NgIf ( #22274 )
...
closes #16410
PR Close #22274
2018-02-18 13:26:50 -08:00
Chuck Jazdzewski
be59c3a98c
fix(common): weaken AsyncPipe transform signature ( #22169 )
...
The AsyncPipe type signature was changed to allow
deferred creation of promises and observalbes that
is supported by the implementation by allowing
`Promise<T>|null|undefined` and by allowing
`Observable<T>|null|undefined`.
PR Close #22169
2018-02-12 15:57:29 -08:00
Olivier Combe
44154e71fd
fix(common): round currencies based on decimal digits in CurrencyPipe
( #21783 )
...
By default, we now round currencies based on the number of decimal digits available for that currency instead of using the rouding defined in the number formats.
More info about that can be found in http://www.unicode.org/cldr/charts/latest/supplemental/detailed_territory_currency_information.html#format_info
Fixes #10189
PR Close #21783
2018-02-09 14:42:23 -08:00
Olivier Combe
420cc7afc6
fix(common): add locale currency values ( #21783 )
...
we now use locale currency symbols, since they may be different in each locale (we were only using english data previously)
Fixes #20385
PR Close #21783
2018-02-09 14:42:23 -08:00
Eli Sadoff
6e8bc310f0
docs: change ”it's" to "its" as needed in several docs. ( #21867 )
...
Most of them are in content but one is in common and needs special approval.
PR Close #21867
2018-01-29 11:34:46 -08:00
vsavkin
c40ae7f7cf
feat(router): add navigationSource and restoredState to NavigationStart event ( #21728 )
...
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).
PR Close #21728
2018-01-29 10:22:59 -08:00
Jason Aden
ede9cb7c2f
Revert: "feat(router): add navigationSource and restoredState to NavigationStart event ( #21728 )"
...
This reverts commit 3b7bab7d22064d545f1745dc3e062fcb1d91073b. Will be re-merged after fixing integration of minor breaking change.
2018-01-26 16:24:56 -08:00
vsavkin
3b7bab7d22
feat(router): add navigationSource and restoredState to NavigationStart event ( #21728 )
...
Currently, NavigationStart there is no way to know if an navigation was triggered imperatively or via the location change. These two use cases should be handled differently for a variety of use cases (e.g., scroll position restoration). This PR adds a navigation source field and restored navigation id (passed to navigations triggered by a URL change).
PR Close #21728
2018-01-26 10:25:32 -08:00
Victor Berchet
7d49443060
fix(common): A null value should remove the style on IE ( #21679 )
...
fixes #21064
PR Close #21679
2018-01-22 12:54:49 -08:00
Olivier Combe
97b18b2a5c
fix(common): extract plural function from i18n locale data files for TS 2.6 ( #21626 )
...
Fixes #21608
PR Close #21626
2018-01-19 13:23:34 -08:00
Olivier Combe
135a2822ea
fix(common): don't remove special characters when extracting CLDR data ( #21626 )
...
PR Close #21626
2018-01-19 13:23:34 -08:00
Trotyl
879756d44c
fix(common): fallback to last defined value for named date and time formats ( #21299 )
...
closes #21282
PR Close #21299
2018-01-18 13:39:00 -06:00
Olivier Combe
05208b8513
fix(common): set correct timezone for ISO8601 dates in Safari ( #21506 )
...
Fixes #21491
PR Close #21506
2018-01-12 13:20:48 -08:00
Olivier Combe
fecf768f43
fix(common): export currencies via getCurrencySymbol
( #20983 )
...
PR Close #20983
2018-01-05 14:24:26 -08:00
Chuck Jazdzewski
83d207d0a7
build: upgrade to TypeScript 2.6 ( #21144 )
...
Fixes #20653
PR Close #21144
2017-12-22 20:15:47 -08:00
Misko Hevery
cc1058f6e1
build: add bazel test rules for more packages ( #21053 )
...
PR Close #21053
2017-12-22 13:10:51 -08:00
Olivier Combe
07b81ae741
fix(common): handle JS floating point errors in percent pipe ( #20329 )
...
Fixes #20136
PR Close #20329
2017-12-22 09:02:49 -08:00