Andrew Kushnir
c71d7b5633
fix(ivy): setting up animation properties correctly (FW-643) ( #27496 )
...
Prior to this change, animation properties were defined as element attributes, which caused errors at runtime. Now all animation-related attributes are defined as element properties.
Also as a part of this update, we start to account for bindings used in animations, which was previously missing.
PR Close #27496
2018-12-06 13:38:40 -08:00
Marc Laval
8e9858fadb
fix(ivy): align NgModuleRef implementation between Ivy and ViewEngine ( #27482 )
...
Solves FW-765 and FW-767
PR Close #27482
2018-12-06 13:35:08 -08:00
Ben Lesh
cd858323f2
feat(ivy): Forward refs now supported ( #27439 )
...
Adds deferred execution of scope setting for modules such that forward refs can be supported in ivy. Design docs can be found at https://docs.google.com/document/d/11KTbybis9rt0cZgMKd1wo_IKb6y1PMU-RoTDVLTXK4Y/edit#
PR Close #27439
2018-12-05 10:41:24 -08:00
Olivier Combe
1279a503a1
feat(ivy): add ng-reflect debug text for containers ( #27350 )
...
PR Close #27350
2018-12-05 10:40:08 -08:00
Misko Hevery
295e0f65a1
refactor(ivy): remove old unused test case ( #27442 )
...
PR Close #27442
2018-12-04 20:00:17 -08:00
Marc Laval
bd864fb274
feat(ivy): support WrappedValue in pipes (FW-726) ( #27409 )
...
PR Close #27409
2018-12-04 19:59:01 -08:00
Miško Hevery
b2d6f43b49
fix(ivy): Implement remaining methods for DebugNode ( #27387 )
...
PR Close #27387
2018-12-04 19:58:25 -08:00
George Kalpakas
56f8c23adf
test(ivy): add tests for ComponentFactory#create()
fix in #27341 ( #27300 )
...
PR Close #27300
2018-12-04 14:03:44 -08:00
Andrew Kushnir
8eb102ab10
fix(ivy): avoid counting style/class bindings in component/directive hostBindings
( #27388 )
...
PR Close #27388
2018-12-03 14:37:30 -08:00
Kara Erickson
2a39425e48
fix(ivy): temporary hack to set host styles and static classes ( #27385 )
...
PR Close #27385
2018-12-03 11:05:36 -08:00
Andrew Kushnir
6f5c124fe9
fix(ivy): proper accounting of host vars in case of inherited Directives ( #27392 )
...
Prior to this change, the number of host vars stored for directives with `hostBindings` in expando block was incorrect for inherited directives (in case both parent and child directive have `hostBindings` defined). Now if we identify that we already added a `hostBinding` into expando block, we just increase the corresponding number of host binding vars
PR Close #27392
2018-12-03 09:18:07 -08:00
Matias Niemelä
a082f6484a
fix(ivy): fix style prop instructions to account for zero-based values ( #27270 )
...
PR Close #27270
2018-12-03 08:23:23 -08:00
Pawel Kozlowski
a1470c94a6
test(ivy): update root causes for @angular/core TestBed failures ( #27419 )
...
PR Close #27419
2018-12-03 08:19:56 -08:00
Andrew Kushnir
a088b8c203
feat(ivy): introduce "allocHostVars" instruction as a replacement for "hostVars" field (FW-692) ( #27299 )
...
PR Close #27299
2018-11-30 14:03:12 -08:00
Alex Rickabaugh
64a34616d8
fix(ivy): support string tokens in dependency injection ( #27383 )
...
In Angular, it used to be an accepted practice to use strings as dependency
injection tokens. E.g. {provide: 'test', useValue: 'provided'}. However,
the Ivy node injection system did not support this. The Ivy DI system
attempts to patch a Bloom bit index onto each type registered with it, and
this patch operation does not work for a string token.
This commit adds string token support to the bloom filter system by
reserving bit 0 for string tokens. This eliminates the need for each string
token to store its own Bloom bit, at the expense of slightly more expensive
lookups of string tokens.
PR Close #27383
2018-11-30 14:00:23 -08:00
Kristiyan Kostadinov
23bc8edf24
test: move remaining fixmeIvy to test level ( #27354 )
...
Moves all of the remaning `describe`-level fixme instances to the `it` level.
PR Close #27354
2018-11-29 21:28:01 -08:00
Misko Hevery
816ec0b1c3
refactor(ivy): treate LView as the primary global state ( #27282 )
...
- rename `LViewData` to `LView` (to be consistent with `TView`)
- Remove `getRenderer`, `getRendererFactory`, `getTview`, `getCurrentQueries`,
PR Close #27282
2018-11-29 21:26:15 -08:00
Misko Hevery
39e426cde3
fix(ivy): TestBed.get(Compiler) throws "Error: Runtime compiler is not loaded" ( #27223 )
...
BREAKING CHANGE:
The public API for `DebugNode` was accidentally too broad. This change removes
1. Public constructor. Since `DebugNode` is a way for Angular to communicate information
on to the developer there is no reason why the developer should ever need to
Instantiate the `DebugNode`
2. We are also removing `removeChild`, `addChild`, `insertBefore`, and `insertChildAfter`.
All of these methods are used by Angular to constructor the correct `DebugNode` tree.
There is no reason why the developer should ever be constructing a `DebugNode` tree
And these methods should have never been made public.
3. All properties have been change to `readonly` since `DebugNode` is used by Angular
to communicate to developer and there is no reason why these APIs should be writable.
While technically breaking change we don’t expect anyone to be effected by this change.
PR Close #27223
2018-11-27 13:42:23 -08:00
Igor Minar
d1227ec800
ci(ivy): packages/core/test/render3 now passes with ivy aot ( #27278 )
...
PR Close #27278
2018-11-27 10:30:58 -08:00
Kara Erickson
d0e8020506
fix(ivy): blueprints should be synced whenever they are off ( #27281 )
...
PR Close #27281
2018-11-27 10:22:03 -08:00
Kara Erickson
a7ba05ad82
fix(ivy): fix directive instantiation at slots above 2^12 ( #27280 )
...
PR Close #27280
2018-11-27 10:20:02 -08:00
Olivier Combe
2fce701ced
feat(ivy): enable ng-reflect debug attributes ( #27268 )
...
PR Close #27268
2018-11-27 10:18:51 -08:00
Marc Laval
c2f30542e7
fix(ivy): should support components without selector ( #27169 )
...
PR Close #27169
2018-11-27 10:17:35 -08:00
JoostK
d767e0b2c0
fix(ivy): consider providers for view/content queries ( #27156 )
...
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 #27156
2018-11-27 10:16:57 -08:00
Pawel Kozlowski
3c9ad1d231
fix(ivy): inject null for missing attributes ( #27237 )
...
PR Close #27237
2018-11-26 09:23:56 -08:00
Andrew Kushnir
dc300c5c41
feat(ivy): render flags support in host bindings function (FW-649) ( #27204 )
...
PR Close #27204
2018-11-21 15:33:47 -08:00
Misko Hevery
e56c8bf8d1
fix(ivy): align discovery methods for consistency ( #27117 )
...
PR Close #27117
2018-11-20 11:44:14 -08:00
Andrew Kushnir
92e80af875
feat(ivy): ICU support for Ivy ( #26794 )
...
PR Close #26794
2018-11-16 16:09:30 -08:00
Marc Laval
848f4148c0
fix(ivy): DI should work when no element injector on starting node ( #27133 )
...
PR Close #27133
2018-11-16 09:26:29 -08:00
Kara Erickson
ee12e725c0
fix(ivy): component ref injector should support change detector ref ( #27107 )
...
PR Close #27107
2018-11-15 21:18:24 -08:00
Olivier Combe
e22a302cad
feat(ivy): support for i18n & ICU expressions ( #27101 )
...
PR Close #27101
2018-11-14 16:22:01 -08:00
Pawel Kozlowski
ce5242462b
fix(ivy): implement rootNodes getter on ViewRef ( #27095 )
...
PR Close #27095
2018-11-14 12:28:03 -08:00
Marc Laval
1c9e526a83
fix(ivy): use the root view injector when resolving dependencies ( #27090 )
...
PR Close #27090
2018-11-14 12:26:36 -08:00
Miško Hevery
f8f1168fa6
Revert "feat(ivy): support for i18n & ICU expressions ( #26275 )"
...
This reverts commit a63fd2d0f5f867ee17bf991a72ccbe6d6fa76566.
2018-11-14 10:23:21 -08:00
Olivier Combe
a63fd2d0f5
feat(ivy): support for i18n & ICU expressions ( #26275 )
...
PR Close #26275
2018-11-13 14:50:30 -08:00
Kara Erickson
bc652a2943
fix(ivy): jit compilation should support content queries with type predicates ( #27068 )
...
PR Close #27068
2018-11-13 12:18:13 -08:00
Kara Erickson
e6e590479e
fix(ivy): support forward refs in @Inject annotations ( #27069 )
...
PR Close #27069
2018-11-13 12:17:18 -08:00
Kara Erickson
123da1a8c2
test(ivy): split out provider tests ( #27069 )
...
PR Close #27069
2018-11-13 12:17:18 -08:00
Kara Erickson
8b9249a670
fix(ivy): host bindings should support content children and content hooks ( #27065 )
...
PR Close #27065
2018-11-12 14:26:06 -08:00
Kara Erickson
1810cdf2c3
fix(ivy): compiler should generate restoreView() for local refs in listeners ( #27034 )
...
PR Close #27034
2018-11-12 12:50:58 -08:00
Kara Erickson
552836ebf0
fix(ivy): merged host bindings functions should take superclass hostVars into account ( #27013 )
...
PR Close #27013
2018-11-09 09:55:47 -08:00
Kara Erickson
2f36a9591d
fix(ivy): providers should not be inherited ( #27013 )
...
PR Close #27013
2018-11-09 09:55:47 -08:00
Igor Minar
499e303ea3
test(ivy): add global utils to the public_api_guard test ( #27008 )
...
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 #27008
2018-11-08 15:37:11 -08:00
Matias Niemelä
e618032d53
feat(ivy): introduce getPlayers()
to global utils ( #27008 )
...
PR Close #27008
2018-11-08 15:37:11 -08:00
Andrew Kushnir
3567e81175
fix(ivy): restore missing match operation in View and Content Queries ( #26847 )
...
PR Close #26847
2018-11-07 16:29:19 -08:00
Kara Erickson
9e26216c40
fix(ivy): compiler should generate bindings to host attrs properly ( #26973 )
...
PR Close #26973
2018-11-07 11:09:31 -08:00
Misko Hevery
7d2a746090
build: remove ivy JIT mode ( #26863 )
...
PR Close #26863
2018-11-02 15:44:05 -07:00
Miško Hevery
c13f46c7c5
fix(ivy): enable packages/core/test/render3 test for AoT ( #26863 )
...
PR Close #26863
2018-11-02 15:44:05 -07:00
Kara Erickson
ea0a99610d
fix(ivy): init hooks should be called before host bindings ( #26802 )
...
PR Close #26802
2018-11-01 14:49:01 -07:00
Kara Erickson
3b9bc73db4
fix(ivy): host bindings after dirs without host bindings should work ( #26801 )
...
PR Close #26801
2018-11-01 14:18:57 -07:00