From 9e53c6ee402b236055c9367badce35171a8732b9 Mon Sep 17 00:00:00 2001 From: Yvonne Allen Date: Fri, 13 Nov 2020 03:36:55 -0500 Subject: [PATCH] docs(docs-infra): remove link to constructor article (#39670) remove the link to the article called Flaw: Constructor does real work by Misko Fixes #39106 PR Close #39670 --- aio/content/guide/lifecycle-hooks.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/aio/content/guide/lifecycle-hooks.md b/aio/content/guide/lifecycle-hooks.md index 1314db1214..66f0df3f1f 100644 --- a/aio/content/guide/lifecycle-hooks.md +++ b/aio/content/guide/lifecycle-hooks.md @@ -305,11 +305,6 @@ Use the `ngOnInit()` method to perform the following initialization tasks. An `ngOnInit()` is a good place for a component to fetch its initial data. For an example, see the [Tour of Heroes tutorial](tutorial/toh-pt4#oninit). -
- - In [Flaw: Constructor does Real Work](http://misko.hevery.com/code-reviewers-guide/flaw-constructor-does-real-work/), Misko Hevery, Angular team lead, explains why you should avoid complex constructor logic. - -
* Set up the component after Angular sets the input properties. Constructors should do no more than set the initial local variables to simple values.