Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 4a5965b

Browse files
committed
add note about aot upgraded comps and lifecycle hooks
1 parent 9f71d2a commit 4a5965b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

public/docs/ts/latest/guide/upgrade.jade

+6
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,12 @@ figure
798798
:marked
799799
And that's all we need to get the full benefit of AoT for Angular 2 apps!
800800

801+
.alert.is-helpful
802+
:marked
803+
The AoT metadata collector will not detect lifecycle hook methods on a parent class' prototype,
804+
so in order for upgraded components to work we needs to implement the lifecycle hooks
805+
on the upgraded component class and forward them to the `UpgradeComponent` parent.
806+
801807
:marked
802808
## Dividing routes between Angular 1 and 2
803809

0 commit comments

Comments
 (0)