core.js:5980 ERROR TypeError: Cannot read property 'id' of undefined [Angular]

后端 未结 0 1814
感情败类
感情败类 2021-01-31 10:19

My code in app.component.ts

    editFood(foodId) {
    console.log(\'Edit\');
    this.dataService.sendGetByIdRequest(\'/Foods/\', foodId)
        .subscribe((dat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题