// Model
export class Recipe {
public name: string;
public description: string;
public imagePath: string;
constructor(name: string, desc: string, imagePath: string) {
this.name = name;
this.description = desc;
this.imagePath = imagePath;
}
}
private recipes: Recipe[] = [
new Recipe('Name 1', 'This is simply a test 1', 'img link 1'),
new Recipe('Name 2', 'This is simply a test 2', 'img link 2')
];