Fetching data in a component constructor is bad practice?

后端 未结 0 991
甜味超标
甜味超标 2020-12-13 01:02

The angular doc says: You should not, for example, fetch data in a component constructor.

But why? I frequently fetch data in constructor, what is drawback of that?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题