224 Commits

Author SHA1 Message Date
Pete Bacon Darwin
72dce34f42 docs(common): move KeyValuePipe example to @usageNotes ()
PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
c08549ae38 docs(common): move KeyValuePipe example to @usageNotes ()
PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
cf8ad24dcf docs(common): remove legacy @whatItDoes tag ()
PR Close 
2018-09-24 09:11:02 -07:00
Pete Bacon Darwin
927323f24e docs: add missing @ngModule tags ()
PR Close 
2018-09-19 16:18:24 -07:00
Judy Bogart
dd5e35ee67 docs: add ngmodule api doc ()
PR Close 
2018-09-19 10:40:58 -07:00
Alex Eagle
cbbad1b791 refactor(ivy): pre-factor: set explicit type parameters for ModuleWithProviders ()
Ivy depends on having the generic type token later when reading the ModuleWithProviders from a .d.ts file.

PR Close 
2018-09-18 13:28:44 -07:00
Greg Magolan
b99d7ed5bf build(bazel): update to rules_typescript 0.17.0 & rules_nodejs 0.13.4 ()
PR Close 
2018-09-18 13:05:38 -07:00
Vikram Subramanian
d83f9d432a fix(common): register locale data for all equivalent closure locales ()
This fix is for the issue below when compiling I18N Angular apps using closure.

For certain locales closure converts the input locale id to a different equivalent locale string. For example if the input locale is 'id'(for Indonesia) goog.LOCALE is set to 'in' and the closure locale data is registered only for 'in'. The Angular compiler uses the original input locale string, 'id' to set the LOCALE_ID token and there is a mismatch of locale used to register and locale used when requesting the locale data.

The fix is for the closure-locale.ts code to register the locale data for all equivalent locales names so that it doesn't matter what goog.LOCALE is actually set to.

PR Close 
2018-09-10 13:59:56 -07:00
Alan Agius
5653fada32 feat: add TypeScript 3 support ()
PR Close 
2018-08-27 21:07:53 -04:00
Pawel Kozlowski
3634575d89 test(common): fix double instantiation in NgSwitch test ()
One of the tests was creating TestComponent instance _and_ using
global state making this test not predictable. Fixing the test
by making sure that TestComponent is instantiated only once.

PR Close 
2018-08-27 16:40:56 -04:00
Pete Bacon Darwin
15cc85c54a style(common): fix short param names ()
PR Close 
2018-08-03 14:09:27 -07:00
Pete Bacon Darwin
725bae1921 docs(common): fix content errors ()
PR Close 
2018-08-03 14:09:27 -07:00
Drummond Dawson
5982425436 test(common): TokenExtractor should extend HttpXsrfTokenExtractor in xsrf spec ()
PR Close 
2018-08-02 08:34:15 -07:00
Drummond Dawson
140248ade0 test(common): remove unused import in xsrf spec ()
PR Close 
2018-08-02 08:34:14 -07:00
cexbrayat
270176bbe4 docs: more info on currency digits ()
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 
2018-07-20 10:33:06 -07:00
Alex Rickabaugh
02b5087685 build(ivy): enable ngtsc AOT builds for a few packages ()
Turn on AOT builds using ngtsc for:

* animations
* common
* compiler
* compiler-cli
* forms
* platform-browser

PR Close 
2018-07-12 16:36:35 -04:00
Alex Rickabaugh
d05d28629d test(common): run common/http tests with Bazel ()
@angular/common/http had tests which were not executed in Bazel. This
commit adds a BUILD.bazel file and ensures the tests pass.

PR Close 
2018-07-12 16:36:35 -04:00
Victor Berchet
0b4d85e9f1 fix(common): format fractional seconds ()
fix a bug introduced in 

PR Close 
2018-07-11 14:32:32 -07:00
Victor Berchet
a527c695aa fix(common): do not round factional seconds ()
fixes 

PR Close 
2018-07-10 18:48:05 -07:00
Olivier Combe
dcabb05102 fix(common): use correct currency format for locale de-AT ()
Fixes 
PR Close 
2018-07-09 15:10:06 -07:00
George Kalpakas
e01b539ee5 refactor: infer type for it() assertion functions ()
PR Close 
2018-07-06 13:48:02 -07:00
George Kalpakas
00c110b055 build: upgrade jasmine (and related typings) to latest version ()
With these changes, the types are a little stricter now and also not
compatible with Protractor's jasmine-like syntax. So, we have to also
use `@types/jasminewd2` for e2e tests (but not for non-e2e tests).

I also had to "augment" `@types/jasminewd2`, because the latest
typings from [DefinitelyTyped][1] do not reflect the fact that the
`jasminewd2` version (v2.1.0) currently used by Protractor supports
passing a `done` callback to a spec.

[1]: 566e039485/types/jasminewd2/index.d.ts (L9-L15)

Fixes 
Closes 

PR Close 
2018-07-06 13:48:02 -07:00
riren
5fe1e74dd3 docs(common): fix in the documentation of PUT ()
PR Close 
2018-07-06 10:13:20 -07:00
Sergej
f974c48885 docs: describe rounding behaviour of 'DecimalPipe' ()
PR Close 
2018-07-06 10:13:00 -07:00
Rafael
8fe8b8fcff docs: fix typos in 'Httpclient' docs ()
PR Close 
2018-07-06 10:09:40 -07:00
Igor Minar
e3064d5432 feat: typescript 2.9 support ()
PR Close 
2018-07-03 13:32:06 -07:00
Trotyl
ff84c5c4da fix(common): properly update collection reference in NgForOf ()
closes 

PR Close 
2018-06-29 06:43:44 -07:00
Olivier Combe
39c8baea31 fix(common): use correct ICU plural for locale mk ()
PR Close 
2018-06-27 15:03:34 -07:00
Judy Bogart
7d318743c1 docs: test doc for decorator templates () ()
PR Close 

PR Close 
2018-06-25 10:49:31 -07:00
Judy Bogart
d244523ae6 docs: test api doc for pipes ()
PR Close 
2018-06-25 09:37:30 -07:00
Rado Kirov
c95437f15d build(bazel): Turning on strictPropertyInitialization for Angular. ()
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 
2018-06-25 07:57:13 -07:00
Pete Bacon Darwin
38a0d1fac5 docs: remove unnecessary @linkDocs tags ()
It is cleaner and simpler to use just a straightforward link.

PR Close 
2018-06-13 16:47:40 -07:00
Fabian Wiles
2b49bf77af feat(common): introduce KeyValuePipe ()
PR Close 
2018-06-13 13:30:49 -07:00
Alex Eagle
c2b5ebfa24 build: update buildifier to latest ()
this matches the version in ngcontainer:0.3.1

PR Close 
2018-06-12 11:42:35 -07:00
Victor Savkin
49c5234c68 feat(router): implement scrolling restoration service ()
For documentation, see `RouterModule.scrollPositionRestoration`

Fixes    

PR Close 
2018-06-08 15:30:52 -07:00
Alex Rickabaugh
7983f0a69b ci(ivy): configure CI environments for Ivy JIT and AOT ()
Two new CircleCI environments are created: test_ivy_jit and test_ivy_aot.
Both run a subset of the tests that have been marked with Bazel tags as
being appropriate for that environment.

Once all the tests pass, builds are published to the *-builds repo both
for the legacy View Engine compiled code as well as for ivy-jit and ivy-aot.

PR Close 
2018-06-08 13:34:27 -07:00
Miško Hevery
08a18b82de refactor(common): Remove ngOnChanges from NgForOf ()
`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 
2018-06-04 13:24:43 -07:00
Vikram Subramanian
60aa943e2d fix(platform-server): avoid dependency cycle when using http interceptor ()
Fixes .

When a HTTP Interceptor injects HttpClient it causes a DI cycle. This fix is to use Injector to lazily inject HTTP_INTERCEPTORS while setting up the HttpHandler on the server so as to break the cycle.

PR Close 
2018-06-01 08:33:45 -07:00
Alex Eagle
017d67cdf8 test: switch to ts_web_test_suite ()
Unit tests now run on Firefox too

PR Close 
2018-05-15 11:40:56 -07:00
swseverance
fe3679a356 style: remove empty comments ()
PR Close 
2018-05-10 15:48:13 -07:00
Igor Minar
6601d0f7ba build: update to rxjs@6.0.0 ()
PR Close 
2018-05-03 10:53:39 -07:00
Olivier Combe
06c0d9666f build(common): mark locales files as side-effect-full ()
Fixes https://github.com/angular/angular-cli/issues/10322
PR Close 
2018-04-24 11:14:52 -07:00
Victor Berchet
4662878a1f refactor(compiler): refactor template binding parsing ()
A long time ago Angular used to support both those attribute notations:
- `*attr='binding'`
- `template=`attr: binding`

Because the last notation has been dropped we can refactor the binding parsing.
Source maps will benefit from that as no `attr:` prefix is added artificialy any
more.

PR Close 
2018-04-20 16:07:55 -07:00
Olivier Combe
d1177c75f8 refactor: update CLDR data for closure locale & use a const for undefined ()
PR Close 
2018-04-13 16:30:23 -07:00
Igor Minar
aa27155618 build(common): mark locales files as side-effect-full ()
These files are in the UMD format for greater portablity, and as such
can't be marked as side-effect-free by webpack/build-optimizer/uglify.

PR Close 
2018-04-13 13:09:13 -07:00
Olivier Combe
ce40e85cbb refactor(common): update CLDR data to v33.0.0 ()
PR Close 
2018-04-11 15:34:46 -07:00
Olivier Combe
5706810af2 fix(common): replace i18n locale undefined values by a const ()
Fixes 
PR Close 
2018-04-11 15:34:46 -07:00
Pete Bacon Darwin
4b96a58c5a docs: remove all deprecated @stable jsdoc tags ()
These are no longer needed as stable docs are computed as those that
do not have `@experimental` or `@deprecated` tags.

PR Close 
2018-04-10 21:49:32 -07:00
Alex Eagle
5a298b1c5e fix(common): workaround UMD/webpack limitation ()
Fixes 

PR Close 
2018-04-09 15:16:12 -07:00
Pete Bacon Darwin
381da1af45 build(aio): move "optional" and "default" to end of param description ()
PR Close 
2018-04-05 09:25:15 -07:00