Marc Laval
1a44a0b4a8
feat(ivy): support lifecycle hooks of ViewContainerRef ( #23396 )
...
PR Close #23396
2018-04-25 19:02:00 -07:00
Kara Erickson
de3ca56769
fix(ivy): support separate creation mode and update mode execution in runtime ( #23292 )
...
PR Close #23292
2018-04-11 15:30:39 -07:00
Miško Hevery
60065935be
refactor(ivy): align compiler with runtime ( #22921 )
...
Remove `containerRefreshStart` and `containerRefreshEnd` instruction
from the output.
Generate directives as a list in `componentDef` rather than inline into
instructions. This is consistent in making selector resolution runtime
so that translation of templates can follow locality.
PR Close #22921
2018-04-02 15:49:48 -07:00
Kara Erickson
6e5fb99304
refactor(ivy): flatten css selectors ( #23074 )
...
PR Close #23074
2018-03-30 15:27:50 -07:00
Kara Erickson
910a16a1ff
refactor(ivy): remove directive references from template ( #22986 )
...
PR Close #22986
2018-03-26 22:33:23 -04:00
Kara Erickson
49396ca2ae
refactor(ivy): move directives into separate array ( #22918 )
...
PR Close #22918
2018-03-22 21:23:02 -04:00
Kara Erickson
4f21d373b7
refactor(ivy): move hostBindings calls out of template ( #22833 )
...
PR Close #22833
2018-03-18 11:41:39 -07:00
Kara Erickson
b1365d1fa8
refactor(ivy): remove directiveRefresh instruction ( #22745 )
...
PR Close #22745
2018-03-13 23:29:21 -07:00
Kara Erickson
bd9d4df735
refactor(ivy): remove inputsPropertyName ( #22716 )
...
Closes #22591
PR Close #22716
2018-03-13 13:26:15 -07:00
Kara Erickson
4c089c1d93
feat(ivy): support ChangeDetectorRef.detectChanges ( #22614 )
...
PR Close #22614
2018-03-07 21:08:25 -08:00
Kara Erickson
d485346d3c
fix(ivy): lifecycle hooks should be queued for root component ( #22614 )
...
PR Close #22614
2018-03-07 21:08:25 -08:00
Marc Laval
aad431642a
refactor(ivy): rename componentRefresh to directiveRefresh ( #22395 )
...
PR Close #22395
2018-02-23 09:42:08 -08:00
Marc Laval
7effb0016c
fix(ivy): ngOnChanges to receive SimpleChanges with non minified property names as keys ( #22352 )
...
PR Close #22352
2018-02-22 17:48:52 -08:00
Marc Laval
b3ffeaa22b
fix(ivy): OnDestroy hook should not be called twice for a directive on an element ( #22350 )
...
PR Close #22350
2018-02-22 13:35:17 -08:00
Marc Laval
894b098eb3
test(ivy): add missing tests on directive lifecycle hooks ( #22368 )
...
PR Close #22368
2018-02-22 11:21:15 -08:00
Victor Berchet
5a14e2238f
refactor(ivy): split the `memory` instruction into `store` and `load` ( #22268 )
...
PR Close #22268
2018-02-18 18:48:41 -08:00
Victor Berchet
10a014d89e
refactor(ivy): prefix viewStart & viewEnd with embedded ( #22055 )
...
PR Close #22055
2018-02-07 17:03:25 -08:00
Victor Berchet
8feb8e5408
refactor(ivy): use long instruction format in tests ( #22055 )
...
PR Close #22055
2018-02-07 17:03:25 -08:00
Kara Erickson
d3d3f7191a
test(ivy): add canonical lifecycle example ( #21793 )
...
PR Close #21793
2018-01-26 14:57:03 -08:00
Kara Erickson
3e03dbe576
refactor(ivy): flatten hooks and collapse LView hook properties ( #21650 )
...
PR Close #21650
2018-01-24 22:14:33 -08:00
Kara Erickson
811679a583
refactor(ivy): remove unnecessary Comp.r function ( #21650 )
...
PR Close #21650
2018-01-24 22:14:33 -08:00
Kara Erickson
2c33d17609
refactor(ivy): move content and view hooks into TView ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
9c99e6a838
refactor(ivy): move init hooks into TView ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
98174758ad
refactor(ivy): add type and hooks to directive def ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
97b928053d
fix(ivy): correct onDestroy order for projected components ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
1fe55e252c
feat(ivy): add afterContentInit and afterContentChecked to render3 ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
53ed4b4648
test(ivy): add missing lifecycle tests for projected components ( #21650 )
...
PR Close #21650
2018-01-24 22:14:32 -08:00
Kara Erickson
e18f1de003
refactor(ivy): remove unnecessary D instruction ( #21484 )
...
PR Close #21484
2018-01-19 15:23:17 -08:00
Miško Hevery
5eaaac35a8
refactor(ivy): remove `type` from `DirectiveDef` ( #21374 )
...
This change makes the code cleaner for the user. It does mean
a little bit more work for us since we have to patch the `type` back
into the `DirectiveDef`. However since the patching happens only once
on startup it should not be significant.
PR Close #21374
2018-01-11 07:02:18 -08:00
Miško Hevery
16232f000f
refactor(ivy): merged containerStart/containerEnd ( #21374 )
...
This separation is no longer needed since directives are now passed into the `container` as an array rather than as child functions of the `containerStart`
PR Close #21374
2018-01-11 07:02:18 -08:00
Misko Hevery
a6d41c47a9
refactor(ivy): move directive into elementStart ( #21374 )
...
We used to have a separate `directive` instruction for instantiating
directives. However, such an instruction requires that directives
are created in the correct order, which would require that template
compiler would have knowledge of all dependent directives. This
would break template compilation locality principle.
This change only changes the APIs to expected form but does
not change the semantics. The semantics will need to be corrected
in subsequent commits. The semantic change needed is to
resolve the directive instantiation error at runtime based on
injection dependencies.
PR Close #21374
2018-01-11 07:02:17 -08:00
Kara Erickson
3db91ffd96
feat(core): add ngAfterViewInit and ngAfterViewChecked support to render3 ( #21266 )
...
PR Close #21266
2018-01-09 14:18:17 -08:00
Kara Erickson
c516bc3b35
feat(core): add ngOnInit and ngDoCheck support in render3 ( #21156 )
...
PR Close #21156
2017-12-27 16:46:56 -06:00
Miško Hevery
1f5049f30c
style: fix formatting errors ( #20855 )
...
PR Close #20855
2017-12-21 21:40:58 -08:00
Kara Erickson
19eeba2281
refactor(core): rename instructions for consistency ( #20855 )
...
PR Close #20855
2017-12-21 21:40:58 -08:00
Kara Erickson
8fdb1e09c1
refactor(core): store directive defs in static data ( #20855 )
...
PR Close #20855
2017-12-21 21:40:58 -08:00
Miško Hevery
0fa818b318
feat(core): Moving Renderer3 into @angular/core ( #20855 )
...
PR Close #20855
2017-12-21 21:40:58 -08:00