Permite añadir eventos a la p

This commit is contained in:
2021-02-02 12:02:37 +01:00
parent e8b52ec48d
commit af852bff37
14 changed files with 231 additions and 20 deletions

View File

@@ -29,6 +29,7 @@ export class Tab1Service implements OnInit{
this.discoteca.setTelefono(666666666);
this.discoteca.setLocalizacion('Calle del Barquillo');
this.galeria = new Galeria();
this.initEventos();
this.galeria.setDiscoteca(this.discoteca.getNombre());
}
@@ -48,7 +49,11 @@ export class Tab1Service implements OnInit{
}
getEventos(): Evento[]{
return this.discoteca.getEventos();
return this.eventos;
}
initEventos(): void{
this.eventos = [];
}
}