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
This commit is contained in:
Yvonne Allen 2020-11-13 03:36:55 -05:00 committed by atscott
parent 8a1c98c5e8
commit 9e53c6ee40
1 changed files with 0 additions and 5 deletions

View File

@ -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. 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). For an example, see the [Tour of Heroes tutorial](tutorial/toh-pt4#oninit).
<div class="alert is-helpful">
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.
</div>
* Set up the component after Angular sets the input properties. * Set up the component after Angular sets the input properties.
Constructors should do no more than set the initial local variables to simple values. Constructors should do no more than set the initial local variables to simple values.