<button class="button"
type="button"
(click)="insertMainSection(i)">Einfügen Hauptteil</button>
+ <button class="button"
+ type="button"
+ (click)="removeMainSection(i)">Lösche Hauptteil</button>
<div *ngFor="let subtitle of title.Subtitles; let i = index">
<h2>{{subtitle.Subtitle}}</h2>
<button class="button"
this.formTitleVisible = true;
}
+ public removeMainSection(index: number): void
+ {
+ this.foodcard.Titles.splice(index, 1);
+ }
+
public addSubtitle(): void
{
let lastTitle = this.getLastTitle()