delete
This commit is contained in:
@ -15,9 +15,10 @@ import {FormsModule} from '@angular/forms';
|
||||
export class ShowFormComponent {
|
||||
showService: ShowService = inject(ShowService);
|
||||
show: Show = new Show(null, null);
|
||||
shows: Show[] = this.showService.getShows();
|
||||
|
||||
save() {
|
||||
this.showService.getShows().push(this.show);
|
||||
this.shows.push(this.show);
|
||||
|
||||
this.show = new Show(null, null);
|
||||
}
|
||||
|
Reference in New Issue
Block a user