Angular Typescript:错误TS2377:派生类的构造函数必须包含“super”调用
我正试图用进度条实现这个角度上传文件,但在我的代码中Angular Typescript:错误TS2377:派生类的构造函数必须包含“super”调用,angular,typescript,inheritance,constructor,angular7,Angular,Typescript,Inheritance,Constructor,Angular7,我正试图用进度条实现这个角度上传文件,但在我的代码中 export class UploadDocumentTemplateComponent extends FieldType {} 我有这一行,因为它我得到了这个错误 错误TS2377:派生类的构造函数必须包含“super”调用 如何解决此问题?仅在您需要的构造函数中 constructor() { super() } 就在你需要的时候 constructor() { super() } 这是你上传DocumentTempl
export class UploadDocumentTemplateComponent extends FieldType {}
我有这一行,因为它我得到了这个错误
错误TS2377:派生类的构造函数必须包含“super”调用
如何解决此问题?仅在您需要的构造函数中
constructor()
{
super()
}
就在你需要的时候
constructor()
{
super()
}
这是你上传DocumentTemplateComponent的全部代码吗?这是你上传DocumentTemplateComponent的全部代码吗?