【发布时间】:2018-09-25 07:25:47
【问题描述】:
我在运行我的项目时遇到错误。
这是代码:
private populateModels() {
var selectedMake = this.makes.find(m => m.id == this.vehicle.makeId);
this.models = selectedMake ? selectedMake.models : [];
}
这是错误:
ERROR in [at-loader] ./ClientApp/app/components/vehicle-form/vehicle-form.component.ts:82:40
TS7006: Parameter 'm' implicitly has an 'any' type.
【问题讨论】: