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 a63fd2d0f5
.
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
Kara Erickson
a2929dfd57
fix(ivy): dynamically created components should run init hooks ( #26864 )
...
PR Close #26864
2018-11-01 13:44:10 -07:00
Kara Erickson
911bfef04c
fix(ivy): bindings should be checked in components created dynamically by root component' ( #26864 )
...
PR Close #26864
2018-11-01 13:44:10 -07:00
Alex Rickabaugh
ca1e538752
feat(ivy): setClassMetadata() for assigning decorator metadata ( #26860 )
...
This commit introduces the setClassMetadata() private function, which
adds metadata to a type in a way that can be accessed via Angular's
ReflectionCapabilities. Currently, it writes to static fields as if
the metadata being added was downleveled from decorators by tsickle.
The plan is for ngtsc to emit code which calls this function, passing
metadata on to the runtime for testing purposes. Calls to this function
would then be tree-shaken away for production bundles.
Testing strategy: proper operation of this function will be an integral
part of TestBed metadata overriding. Angular core tests will fail if this
is broken.
PR Close #26860
2018-10-31 19:52:36 -04:00
Misko Hevery
d042c4afe0
fix(core): Remove static dependency from @angular/core to @angular/compiler ( #26734 )
...
PR Close #26734
2018-10-31 14:15:06 -04:00
Matias Niemelä
68b2211e64
fix(ivy): ensure falsy styling is not applied during creation mode ( #26793 )
...
PR Close #26793
2018-10-30 19:41:56 -04:00
Pawel Kozlowski
ede65dbede
fix(ivy): allow root components to inject ViewContainerRef ( #26682 )
...
PR Close #26682
2018-10-29 18:47:14 -04:00
Pawel Kozlowski
578e4c7642
fix(ivy): compile queries in JIT mode ( #26816 )
...
PR Close #26816
2018-10-29 18:46:44 -04:00
Kara Erickson
96770e5c6b
fix(ivy): optional dependencies should not throw with module injector ( #26763 )
...
PR Close #26763
2018-10-29 14:12:36 -04:00
Kara Erickson
1130e48541
fix(ivy): host injection flag should not throw for embedded views ( #26795 )
...
PR Close #26795
2018-10-29 14:12:11 -04:00
Andrew Kushnir
2a869271f6
fix(ivy): move HostListeners generation to factory function ( #26480 )
...
PR Close #26480
2018-10-29 14:02:22 -04:00
Kara Erickson
d52d82d744
fix(ivy): injecting optional TemplateRef on element should not throw ( #26664 )
...
PR Close #26664
2018-10-26 18:11:27 -04:00
Matias Niemelä
d50d400231
build: fix formatting issue in host_binding_spec file
2018-10-26 14:33:04 -07:00
Kara Erickson
19fcfc3d00
fix(compiler): generate inputs with aliases properly ( #26774 )
...
PR Close #26774
2018-10-26 17:23:45 -04:00
Kara Erickson
2fd4c372d5
fix(ivy): resolve forward refs in providers ( #26766 )
...
PR Close #26766
2018-10-26 15:50:11 -04:00
Kara Erickson
f76ce84ae1
fix(ivy): host bindings should work on nodes with providers ( #26771 )
...
PR Close #26771
2018-10-26 15:49:30 -04:00
Igor Minar
40bbfbf961
test(ivy): fix or disable failing ivy tests ( #26735 )
...
These tests were previously not running on CI so they have always been broken,
or got broken just recently :-(.
test(ivy): mark failing test targets with fixme-ivy-jit and fixme-ivy-local tags
PR Close #26735
2018-10-26 14:48:05 -04:00
Kara Erickson
2c7386c961
feat(ivy): support injecting the injector ( #26699 )
...
PR Close #26699
2018-10-25 18:47:56 -04:00