我正在使用 loginComponent 开发一个示例项目,当我尝试添加 OnInit 时,我需要在我的类中实现 OnInit ,但出现以下错误
[ts] 找不到 OnInit
这是我的代码
export class loginComponent implements OnInit{
ngOnInit():all{
}
}
如何解决这个问题
提前致谢
import { OnInit } from '@angular/core';
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)