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
Misko Hevery
e56c8bf8d1
fix(ivy): align discovery methods for consistency ( #27117 )
...
PR Close #27117
2018-11-20 11:44:14 -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
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
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
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
a2929dfd57
fix(ivy): dynamically created components should run init hooks ( #26864 )
...
PR Close #26864
2018-11-01 13:44:10 -07: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
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
Kara Erickson
7ea5161d4d
refactor(ivy): merge directives into LViewData ( #26316 )
...
PR Close #26316
2018-10-09 16:46:00 -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
6a62ed2245
fix(ivy): objects like ElementRef should not use a special injection fn ( #26064 )
...
PR Close #26064
2018-09-25 12:51:29 -07:00
Kara Erickson
aedebaf025
refactor(ivy): remove LNode.tNode ( #25958 )
...
PR Close #25958
2018-09-14 16:16:28 -07:00
Kara Erickson
47f4412650
refactor(ivy): LContainers should store views not nodes ( #25933 )
...
PR Close #25933
2018-09-13 15:56:04 -07:00
Miško Hevery
d5bd86ae5d
fix(ivy): don't accidently read the inherited definition ( #25736 )
...
Create getter methods `getXXXDef` for each definition which
uses `hasOwnProperty` to verify that we don't accidently read form the
parent class.
Fixes : #24011
Fixes : #25026
PR Close #25736
2018-09-11 07:09:38 -07:00
Kara Erickson
83a1334876
refactor(ivy): migrate previousOrParentNode to use TNodes ( #25829 )
...
PR Close #25829
2018-09-07 16:06:17 -07:00
Pawel Kozlowski
34be51898d
fix(ivy): support host bindings on dynamically created components ( #25765 )
...
PR Close #25765
2018-08-31 13:36:53 -07:00
Kara Erickson
d5b70e0c66
fix(ivy): create LViewData from blueprint ( #25587 )
...
PR Close #25587
2018-08-22 15:58:42 -04:00
Kara Erickson
831e71ea3c
fix(ivy): host bindings should support array/object literals ( #25583 )
...
PR Close #25583
2018-08-21 10:48:42 -07:00
Kara Erickson
21a14407f6
refactor(ivy): generate vars in component defs ( #25562 )
...
PR Close #25562
2018-08-20 11:08:10 -07:00
Kara Erickson
f2aa9c6a7f
refactor(ivy): use generated consts value to set binding index ( #25533 )
...
PR Close #25533
2018-08-17 14:32:55 -07:00
Victor Berchet
14ac7ad6b4
feat(ivy): implement TestBed ( #25369 )
...
PR Close #25369
2018-08-14 11:58:47 -07:00
Miško Hevery
2016afdbff
fix(ivy): remove ivy dependency on ViewEngine's resolveRendererType2 ( #25396 )
...
PR Close #25396
2018-08-10 13:32:04 -07:00
Marc Laval
e3834b7001
feat(ivy): support change detection on the root view ( #25085 )
...
PR Close #25085
2018-07-30 21:50:54 -07:00
Kara Erickson
2ef777b0b2
fix(ivy): convert context code into a tree-shakable instruction ( #24943 )
...
PR Close #24943
2018-07-30 15:54:11 -07:00
Marc Laval
445b9a5627
feat(ivy): support ViewContainerRef.createComponent() ( #24997 )
...
PR Close #24997
2018-07-24 08:23:23 -07:00
Pawel Kozlowski
3e1a3b2e32
fix(ivy): support queries for views inserted in lifecycle hooks ( #24587 )
...
Closes #23707
PR Close #24587
2018-06-20 16:51:14 -07:00
Alex Rickabaugh
27bc7dcb43
feat(ivy): ngtsc compiles @Component, @Directive, @NgModule ( #24427 )
...
This change supports compilation of components, directives, and modules
within ngtsc. Support is not complete, but is enough to compile and test
//packages/core/test/bundling/todo in full AOT mode. Code size benefits
are not yet achieved as //packages/core itself does not get compiled, and
some decorators (e.g. @Input) are not stripped, leading to unwanted code
being retained by the tree-shaker. This will be improved in future commits.
PR Close #24427
2018-06-14 14:36:45 -07:00
Kara Erickson
29eb24b142
refactor(ivy): combine LView with data ( #24382 )
...
PR Close #24382
2018-06-08 21:41:01 -07:00
Jason Aden
e3759f7a73
feat(ivy): add support of ApplicationRef.bootstrapModuleFactory ( #23811 )
...
PR Close #23811
2018-06-07 16:15:26 -04:00
Victor Berchet
c494d3cf60
Revert "feat(ivy): add support of ApplicationRef.bootstrapModuleFactory ( #23811 )"
...
This reverts commit 22b58a717aad87092a7f7080805c10ef36960694.
This commit causes a breakage in g3.
2018-06-05 22:11:47 -07:00
Jason Aden
22b58a717a
feat(ivy): add support of ApplicationRef.bootstrapModuleFactory ( #23811 )
...
PR Close #23811
2018-06-05 20:10:25 -07:00