Permite añadir eventos a la p
This commit is contained in:
@@ -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 = [];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user