📜  在构造函数和 oninit 中调用当前用户有什么不同 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:59.578000             🧑  作者: Mango

代码示例1
OK, first of all ngOnInit is part of Angular lifecycle, while constructor is part of ES6 JavaScript class, so the major difference starts from right here!...