【发布时间】:2018-05-27 06:40:19
【问题描述】:
构造函数(私有appService:AppService){} newHero:put详情 数据源:MatTableDataSource; ngOnInit() { this.appService.getcomplains() .subscribe(data => this.newHero = data); this.dataSource = this.newHero; } 错误:
类型“putDetail”不可分配给类型 'MatTableDataSource'。类型中缺少属性“_data” 'putDetail'。 (属性)ComplaintsComponent.dataSource: MatTableDataSource
【问题讨论】:
标签: angular material-design angular-material