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
Matias Niemelä
8171a2ab94
fix(ivy): ensure pipe declarations are populated lazily when a forward ref is detected ( #26765 )
...
PR Close #26765
2018-10-26 15:57:10 -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
Miško Hevery
95f852e856
build: fix comment formatting to make closure happy ( #26769 )
...
PR Close #26769
2018-10-25 19:40:36 -04:00
Kara Erickson
2c7386c961
feat(ivy): support injecting the injector ( #26699 )
...
PR Close #26699
2018-10-25 18:47:56 -04:00
Marc Laval
b0476f308b
feat(ivy): support providers and viewProviders ( #25803 )
...
PR Close #25803
2018-10-25 12:58:40 -04:00
Matias Niemelä
9dc52d9d04
feat(ivy): expose a series of debug console tools ( #26705 )
...
PR Close #26705
2018-10-24 20:30:51 -04:00
Matias Niemelä
297dc2bc02
fix(ivy): ensure ngClass
works with [class] bindings ( #26559 )
...
PR Close #26559
2018-10-24 20:27:12 -04:00
Pawel Kozlowski
ff767dd153
fix(ivy): support ViewContainerRef ng-container children ( #26646 )
...
Issue found while running NgPlural tests with ivy
PR Close #26646
2018-10-23 08:52:30 -07:00
Pete Bacon Darwin
24521f549c
docs: convert all @experimental
tags to @publicApi
tags ( #26595 )
...
PR Close #26595
2018-10-19 14:35:52 -07:00
Olivier Combe
03bf0d6b41
docs(ivy): update status for i18n ( #26502 )
...
PR Close #26502
2018-10-19 11:06:25 -07:00
Matias Niemelä
fa8e633be5
feat(ivy): enhance [style] and [class] bindings to be animation aware ( #26096 )
...
PR Close #26096
2018-10-16 20:39:19 -07:00
Matias Niemelä
be337a2e52
refactor(ivy): move styling files around ( #26096 )
...
PR Close #26096
2018-10-16 20:39:18 -07:00
Miško Hevery
4d164b6ca4
fix(ivy): make defineComponent tree shakable by Closure Compiler ( #26425 )
...
PR Close #26425
2018-10-16 20:37:35 -07:00
Matias Niemelä
9e5d440a0b
refactor(ivy): handle animation metadata normalization in the compiler ( #26481 )
...
PR Close #26481
2018-10-16 20:31:04 -07:00
Miško Hevery
7d82053117
docs(ivy): i18n design ( #26091 )
...
PR Close #26091
2018-10-16 14:08:01 -07:00
Kara Erickson
e76a570908
refactor(ivy): remove LNode ( #26426 )
...
PR Close #26426
2018-10-15 11:20:32 -07:00
Kara Erickson
931e603f80
refactor(ivy): revert LNode.data into LViewData[HOST] ( #26424 )
...
PR Close #26424
2018-10-15 10:17:12 -07:00
Pawel Kozlowski
45732e5b91
fix(ivy): fix reference to pipeBind instruction with 2 args ( #26451 )
...
PR Close #26451
2018-10-15 10:14:25 -07:00
Miško Hevery
9ebb4c02a2
docs(ivy): update status.md ( #26382 )
...
PR Close #26382
2018-10-12 09:01:41 -07:00
Kara Erickson
735dfd3b1a
refactor(ivy): replace LNode.dynamicLContainerNode with flat LContainers ( #26407 )
...
PR Close #26407
2018-10-11 21:07:21 -07:00
Kara Erickson
70cd112872
refactor(ivy): remove TNode.dynamicContainerNode ( #26407 )
...
PR Close #26407
2018-10-11 21:07:21 -07:00
Pawel Kozlowski
6a64ac4151
fix(ivy): Renderer2 should not use a special injection fn ( #26369 )
...
PR Close #26369
2018-10-11 14:12:03 -07:00
Pawel Kozlowski
4b494f23f5
fix(ivy): fix generated code for style bindings with units ( #26397 )
...
PR Close #26397
2018-10-11 14:11:15 -07:00
Pawel Kozlowski
053bf27fb3
refactor(ivy): use context discovery in TestBed implementation ( #26211 )
...
PR Close #26211
2018-10-11 13:01:28 -07:00
Andrew Kushnir
39f42bad1c
feat(ivy): i18n compiler support for element attributes ( #26280 )
...
PR Close #26280
2018-10-11 13:00:19 -07:00
Pawel Kozlowski
3f8ac238f1
refactor(ivy): remove unused directives field from TView ( #26364 )
...
It was removed in #26316
PR Close #26364
2018-10-11 12:59:02 -07:00
Andrew Kushnir
be4edf15ee
fix(core): resolving merge conflicts in query.ts ( #26324 )
...
PR Close #26324
2018-10-09 17:34:08 -07:00
Andrew Kushnir
e5644204dc
fix(ivy): removing unnecessary assert in getOrCreateNodeInjector function ( #26305 )
...
PR Close #26305
2018-10-09 16:52:00 -07:00
Andrew Kushnir
69b9758ab8
fix(ivy): removing no longer needed QueryReadType ( #26314 ) ( #26314 )
...
PR Close #26314
PR Close #26314
2018-10-09 16:50:34 -07:00
Kara Erickson
7ea5161d4d
refactor(ivy): merge directives into LViewData ( #26316 )
...
PR Close #26316
2018-10-09 16:46:00 -07:00
Kara Erickson
b0879046b7
test(ivy): add testing utility to replace loadDirective ( #26316 )
...
PR Close #26316
2018-10-09 16:46:00 -07:00
Alex Rickabaugh
456f23f76a
fix(ivy): reflect animations field directly into the output definition ( #26322 )
...
The 'animations' field of @Component metadata should be copied directly
into the ngComponentDef for that component and should not pass through
static resolution.
Previously the animations array was statically resolved and then the
values were translated back when generating ngComponentDef.
PR Close #26322
2018-10-09 16:45:31 -07:00
Kara Erickson
8f25321787
refactor(ivy): update context discovery to prep for dir merge ( #26262 )
...
PR Close #26262
2018-10-05 13:39:30 -07:00
Kara Erickson
51dfdd5dd1
fix(ivy): sync view with blueprint when necessary ( #26263 )
...
PR Close #26263
2018-10-05 13:39:03 -07:00
Pawel Kozlowski
fdaf573073
feat(ivy): expose node injector as part of debug context ( #26210 )
...
PR Close #26210
2018-10-04 10:12:02 -07:00
Alex Rickabaugh
79466baef8
fix(ivy): remove metadata from *Def and introduce *DefWithMeta types ( #26203 )
...
Previously in Ivy, metadata for directives/components/modules/etc was
carried in .d.ts files inside type information encoded on the
DirectiveDef, ComponentDef, NgModuleDef, etc types of Ivy definition
fields. This works well, but has the side effect of complicating Ivy's
runtime code as these extra generic type parameters had to be specified
as <any> throughout the codebase. *DefInternal types were introduced
previously to mitigate this issue, but that's the wrong way to solve
the problem.
This commit returns *Def types to their original form, with no metadata
attached. Instead, new *DefWithMeta types are introduced that alias the
plain definition types and add extra generic parameters. This way the
only code that needs to deal with the extra metadata parameters is the
compiler code that reads and writes them - the existence of this metadata
is transparent to the runtime, as it should be.
PR Close #26203
2018-10-04 10:11:17 -07:00
Kara Erickson
730679964f
refactor(ivy): flatten LInjector into LViewData ( #26220 )
...
PR Close #26220
2018-10-03 15:27:57 -07:00
Andrew Kushnir
cb59d87489
feat(ivy): compiler support to generate QUERY_READ_FROM_NODE calls ( #26171 )
...
PR Close #26171
2018-10-03 12:28:23 -07:00
Matias Niemelä
ab379ab72a
refactor(ivy): always use styling helper methods when comparing values ( #26149 )
...
PR Close #26149
2018-10-01 09:35:22 -07:00
Matias Niemelä
32e479ffec
refactor(ivy): reorganize styling and player files ( #26149 )
...
PR Close #26149
2018-10-01 09:35:22 -07:00