Kristiyan Kostadinov
4622d0b23a
fix(ivy): detach ViewRef from ApplicationRef on destroy ( #27276 )
...
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 #27276
2018-11-27 10:24:53 -08:00
Pawel Kozlowski
0487fbe236
fix(ivy): throw a descriptive error when trying to insert / move destroyed view ( #27289 )
...
PR Close #27289
2018-11-27 10:23:14 -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
Miško Hevery
ca40565f9a
fix(ivy): hack implementation of host styles ( #27180 )
...
PR Close #27180
2018-11-20 11:43:29 -08:00
Olivier Combe
bf3beb5959
fix(ivy): set ng-version
attribute on root component ( #27175 )
...
PR Close #27175
2018-11-20 10:43:51 -08:00
Matias Niemelä
20ea5b5634
refactor(ivy): ensure directive host bindings use the styling algorithm ( #27145 )
...
PR Close #27145
2018-11-17 10:12:47 -08:00
Misko Hevery
4222b63639
Revert "refactor(ivy): ensure directive host bindings use the styling algorithm ( #27134 )"
...
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 ( #27134 )
...
PR Close #27134
2018-11-16 16:10:45 -08:00
Andrew Kushnir
92e80af875
feat(ivy): ICU support for Ivy ( #26794 )
...
PR Close #26794
2018-11-16 16:09:30 -08:00
JoostK
60800da6c1
fix(ivy): export elementContainerStart/End instructions ( #27053 )
...
PR Close #27053
2018-11-16 12:19:18 -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
e6e590479e
fix(ivy): support forward refs in @Inject annotations ( #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
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
Miško Hevery
53e4e0c1a3
fix(ivy): Enable AoT tests to run on CI; disable failing tests ( #26975 )
...
PR Close #26975
2018-11-07 10:35:20 -08:00
Matias Niemelä
931a363612
fix(ivy): use window.ng
instead of window.ngDev
for debug tooling ( #26951 )
...
PR Close #26951
2018-11-06 17:08:37 -08:00
Marc Laval
297c54ebb3
fix(ivy): support env where requestAnimationFrame is not available ( #26779 )
...
PR Close #26779
2018-11-06 11:49:32 -08:00
Kara Erickson
dc2464eaaa
fix(ivy): jit should handle undefined type in constructor deps ( #26956 )
...
PR Close #26956
2018-11-06 11:22:14 -08: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
Miško Hevery
683d53db4b
docs: add Function Inlining
rules to PERF_NOTES.md
( #26876 )
...
PR Close #26876
2018-11-01 13:47:34 -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ä
5d740785a9
docs: fix aot typo
2018-10-30 17:37:20 -07: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
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
Kara Erickson
19fcfc3d00
fix(compiler): generate inputs with aliases properly ( #26774 )
...
PR Close #26774
2018-10-26 17:23:45 -04:00