-2
オブジェクト構造を使用して活字体で呼び出し対象のいずれかの署名と一致していないとして、以下のようになります。提供されたパラメータは、角2
export class Recipe {
public name: string;
public description: string;
public imagePath: string;
constructorn(name: string, desc: string, imagePath: string) {
this.name = name;
this.description = desc;
this.imagePath = imagePath;
}
}
そして、私の呼び出し文:
export class RecipeListComponent implements OnInit {
recipes: Recipe[] = [
new Recipe('Test Recipe', 'This is simply a test',
'https://cdn.pixabay.com/photo/2016/06/15/19/09/food-
1459693_960_720.jpg')
];
}
私はすべて合格していますがパラメータが、まだ私はエラーを取得しています "提供されたパラメータは、呼び出しのターゲットの署名と一致しません"
スペルを確認してください。 – jonrsharpe