Html 无法读取属性';建筑商';未定义的问题

Html 无法读取属性';建筑商';未定义的问题,html,angular,typescript,Html,Angular,Typescript,这是我的密码 自定义表单组件.ts 从'@angular/core'导入{Component}; 从'@angular/Router'导入{Router}; 从'angular formio/auth'导入{FormioAuthService}; 从'formiojs'导入{Formio}; 从“/Select”导入{SelectComponent}; @组成部分({ 选择器:“app-custom_formio”, templateUrl:'./custom_formio.component.

这是我的密码

自定义表单组件.ts
从'@angular/core'导入{Component};
从'@angular/Router'导入{Router};
从'angular formio/auth'导入{FormioAuthService};
从'formiojs'导入{Formio};
从“/Select”导入{SelectComponent};
@组成部分({
选择器:“app-custom_formio”,
templateUrl:'./custom_formio.component.html',
样式URL:['./自定义格式组件.less']
})
导出类CustomFormicoComponent{
建筑商:任何;
标题=‘应用程序’;
离线计数=0;
offlineMode:any=null;
离线错误=“”;
构造函数(专用身份验证:FormioAuthService,专用路由器:路由器){
this.auth.onLogin.subscribe(()=>{
this.router.navigate(['/home']);
});
this.auth.onLogout.subscribe(()=>{
this.router.navigate(['/auth/login']);
});
this.auth.onRegister.subscribe(()=>{
this.router.navigate(['/home']);
});
Formio.registerComponent('custom_Formio',SelectComponent');
}
}