1060 Commits

Author SHA1 Message Date
Igor Minar
f7ba4b2ff9 fix(ivy): remove obsolete ng_module code for global and jit mode ()
These paths are no longer needed / used.

I had to disable one jit mode spec because it fails now that we actually run it.
I root caused the jit test failure as missing forwardRef support. See FW-645.

PR Close 
2018-11-27 10:30:58 -08:00
Igor Minar
d1227ec800 ci(ivy): packages/core/test/render3 now passes with ivy aot ()
PR Close 
2018-11-27 10:30:58 -08:00
Kristiyan Kostadinov
4622d0b23a fix(ivy): detach ViewRef from ApplicationRef on destroy ()
Currently we store the `_appRef` when a `ViewRef` is attached, however we don't use it for anything. These changes use it to detach the view from the `ApplicationRef` when it is destroyed. These changes also fix that the `ComponentRef` doesn't remove its `ViewRef` on destroy.

PR Close 
2018-11-27 10:24:53 -08:00
Pawel Kozlowski
0487fbe236 fix(ivy): throw a descriptive error when trying to insert / move destroyed view ()
PR Close 
2018-11-27 10:23:14 -08:00
Kara Erickson
d0e8020506 fix(ivy): blueprints should be synced whenever they are off ()
PR Close 
2018-11-27 10:22:03 -08:00
Kara Erickson
a7ba05ad82 fix(ivy): fix directive instantiation at slots above 2^12 ()
PR Close 
2018-11-27 10:20:02 -08:00
Olivier Combe
2fce701ced feat(ivy): enable ng-reflect debug attributes ()
PR Close 
2018-11-27 10:18:51 -08:00
Olivier Combe
32157115da fix(ivy): register ModuleWithProviders when deduplicating imported modules ()
PR Close 
2018-11-27 10:18:51 -08:00
Marc Laval
c2f30542e7 fix(ivy): should support components without selector ()
PR Close 
2018-11-27 10:17:35 -08:00
JoostK
d767e0b2c0 fix(ivy): consider providers for view/content queries ()
In ViewEngine it is possible to query for a token that is provided by
a directive that is in scope. See StackBlitz for example:
https://stackblitz.com/edit/ng-viewengine-viewchild-providers

Material uses this pattern with its `MatFormFieldControl` setup, see
https://bit.ly/2zgCUxD for documentation.

PR Close 
2018-11-27 10:16:57 -08:00
Pawel Kozlowski
9e5223eaba test(core): add more root causes for TestBed tests failures ()
PR Close 
2018-11-26 09:24:32 -08:00
Pawel Kozlowski
3c9ad1d231 fix(ivy): inject null for missing attributes ()
PR Close 
2018-11-26 09:23:56 -08:00
Andrew Kushnir
dc300c5c41 feat(ivy): render flags support in host bindings function (FW-649) ()
PR Close 
2018-11-21 15:33:47 -08:00
JoostK
c8c8648abf fix(ivy): prevent ngcc from referencing missing ɵsetClassMetadata ()
When ngtsc compiles @angular/core, it rewrites core imports to the
r3_symbols.ts file that exposes all internal symbols under their
external name. When creating the FESM bundle, the r3_symbols.ts file
causes the external symbol names to be rewritten to their internal name.

Under ngcc compilations of FESM bundles, the indirection of
r3_symbols.ts is no longer in place such that the external names are
retained in the bundle. Previously, the external name `ɵdefineNgModule`
was explicitly declared internally to resolve this issue, but the
recently added `setClassMetadata` was not declared as such, causing
runtime errors.

Instead of relying on the r3_symbols.ts file to perform the rewrite of
the external modules to their internal variants, the translation is
moved into the `ImportManager` during the compilation itself. This
avoids the need for providing the external name manually.

PR Close 
2018-11-21 09:20:11 -08:00
Pawel Kozlowski
d666370e16 test(core): add JIRA references for root-casuse ivy TestBed failures ()
PR Close 
2018-11-21 09:18:54 -08:00
Misko Hevery
e56c8bf8d1 fix(ivy): align discovery methods for consistency ()
PR Close 
2018-11-20 11:44:14 -08:00
Miško Hevery
ca40565f9a fix(ivy): hack implementation of host styles ()
PR Close 
2018-11-20 11:43:29 -08:00
Olivier Combe
bf3beb5959 fix(ivy): set ng-version attribute on root component ()
PR Close 
2018-11-20 10:43:51 -08:00
Olivier Combe
20729b3378 fix(ivy): deduplicate imported modules in r3_injector ()
PR Close 
2018-11-19 09:20:39 -08:00
Matias Niemelä
20ea5b5634 refactor(ivy): ensure directive host bindings use the styling algorithm ()
PR Close 
2018-11-17 10:12:47 -08:00
Misko Hevery
4222b63639 Revert "refactor(ivy): ensure directive host bindings use the styling algorithm ()"
This reverts commit b5dbf5154e19088aa3fde143cf72892d43170f71.
2018-11-16 17:55:41 -08:00
Matias Niemelä
b5dbf5154e refactor(ivy): ensure directive host bindings use the styling algorithm ()
PR Close 
2018-11-16 16:10:45 -08:00
Andrew Kushnir
92e80af875 feat(ivy): ICU support for Ivy ()
PR Close 
2018-11-16 16:09:30 -08:00
JoostK
60800da6c1 fix(ivy): export elementContainerStart/End instructions ()
PR Close 
2018-11-16 12:19:18 -08:00
Marc Laval
848f4148c0 fix(ivy): DI should work when no element injector on starting node ()
PR Close 
2018-11-16 09:26:29 -08:00
crisbeto
6574e61062 test(ivy): skip useJit tests with Ivy ()
Currently the `useJit` option from `TestBed.configureCompiler` isn't supported. These changes rework the existing test suites not to pass in `useJit` when running with Ivy.

PR Close 
2018-11-15 21:19:21 -08:00
Kara Erickson
ee12e725c0 fix(ivy): component ref injector should support change detector ref ()
PR Close 
2018-11-15 21:18:24 -08:00
Olivier Combe
e22a302cad feat(ivy): support for i18n & ICU expressions ()
PR Close 
2018-11-14 16:22:01 -08:00
Pawel Kozlowski
ce5242462b fix(ivy): implement rootNodes getter on ViewRef ()
PR Close 
2018-11-14 12:28:03 -08:00
Marc Laval
1c9e526a83 fix(ivy): use the root view injector when resolving dependencies ()
PR Close 
2018-11-14 12:26:36 -08:00
Miško Hevery
f8f1168fa6 Revert "feat(ivy): support for i18n & ICU expressions ()"
This reverts commit a63fd2d0f5f867ee17bf991a72ccbe6d6fa76566.
2018-11-14 10:23:21 -08:00
Kara Erickson
f0c4f31771 fix(ivy): should export lifecycle hooks feature ()
PR Close 
2018-11-13 16:17:30 -08:00
Olivier Combe
a63fd2d0f5 feat(ivy): support for i18n & ICU expressions ()
PR Close 
2018-11-13 14:50:30 -08:00
Kara Erickson
bc652a2943 fix(ivy): jit compilation should support content queries with type predicates ()
PR Close 
2018-11-13 12:18:13 -08:00
Kara Erickson
e6e590479e fix(ivy): support forward refs in @Inject annotations ()
PR Close 
2018-11-13 12:17:18 -08:00
Kara Erickson
123da1a8c2 test(ivy): split out provider tests ()
PR Close 
2018-11-13 12:17:18 -08:00
Judy Bogart
9741f5b8cf docs: new doc for core directives ()
PR Close 
2018-11-13 10:57:56 -08:00
Kristiyan Kostadinov
5247594e86 fix(ivy): add support for providers in TestBed.configureCompiler ()
Adds support for the `providers` that are passed in through `TestBed.configureCompiler` and scopes the error only if the consumer has passed in `useJit`.

PR Close 
2018-11-12 15:33:56 -08:00
Kara Erickson
8b9249a670 fix(ivy): host bindings should support content children and content hooks ()
PR Close 
2018-11-12 14:26:06 -08:00
Kara Erickson
1810cdf2c3 fix(ivy): compiler should generate restoreView() for local refs in listeners ()
PR Close 
2018-11-12 12:50:58 -08:00
Kristiyan Kostadinov
e5c9f7a507 fix(ivy): provide NgZone to ComponentRef ()
Fixes the r3 `TestBed` not providing an `NgZone` to the `ComponentFixture`.

PR Close 
2018-11-12 12:47:07 -08:00
Kara Erickson
78b6f88cb3 fix(ivy): TestBed should use an NgZone ()
PR Close 
2018-11-09 09:56:36 -08:00
Kara Erickson
552836ebf0 fix(ivy): merged host bindings functions should take superclass hostVars into account ()
PR Close 
2018-11-09 09:55:47 -08:00
Kara Erickson
2f36a9591d fix(ivy): providers should not be inherited ()
PR Close 
2018-11-09 09:55:47 -08:00
Igor Minar
499e303ea3 test(ivy): add global utils to the public_api_guard test ()
This API is part of our public api surface and needs to be monitored by the public_api_guard.

I also had to go back and mark all of the exported functions with @publicApi jsdoc tag.

PR Close 
2018-11-08 15:37:11 -08:00
Matias Niemelä
e618032d53 feat(ivy): introduce getPlayers() to global utils ()
PR Close 
2018-11-08 15:37:11 -08:00
Andrew Kushnir
3567e81175 fix(ivy): restore missing match operation in View and Content Queries ()
PR Close 
2018-11-07 16:29:19 -08:00
Kara Erickson
9e26216c40 fix(ivy): compiler should generate bindings to host attrs properly ()
PR Close 
2018-11-07 11:09:31 -08:00
Miško Hevery
53e4e0c1a3 fix(ivy): Enable AoT tests to run on CI; disable failing tests ()
PR Close 
2018-11-07 10:35:20 -08:00
Miško Hevery
5e769d9a25 fix(ivy): add nocollapse to ngInjectableDef for closure compatibility ()
PR Close 
2018-11-07 10:35:20 -08:00