I need to push an Object into an array which contains another array by writing the ID into a textfield.How to use methods with arrays in arrays?
Demo: https://angular-flj24f.stackblitz.io
Classes:
class Food {
id: number;
name: string;
preis: number;
art: string;
}
class Foodplan {
id: number;
foodPerWeek: number[] = new Array(5);
Thanks in advance.