añadida interfaz discoteca

This commit is contained in:
onsaliyo 2021-02-21 12:21:18 +01:00
parent 227c254ebc
commit b9d95793dc
4 changed files with 13 additions and 1 deletions

2
src/app/discoteca-i.ts Normal file
View File

@ -0,0 +1,2 @@
export interface DiscotecaI {
}

View File

@ -20,6 +20,7 @@ export class PerfilDiscotecaPage implements OnInit {
nombre: string;
telefono: number;
localizacion: string;
descripcion: string;
fotoSrc: string;
fotoLoaded: string;
someURL: string;
@ -73,6 +74,10 @@ export class PerfilDiscotecaPage implements OnInit {
this.eventos = this.tab1Service.getEventos();
}
getDescripcion(): void{
this.descripcion = this.tab1Service.getDescripcion();
}
cargarImagen(){
this.fotoSrc = this.someURL;
}

View File

@ -56,6 +56,11 @@ export class Tab1Service implements OnInit{
return this.eventos;
}
getDescripcion(): string{
this.initValues();
return this.discoteca.getDescripcion();
}
initEventos(): void{
this.eventos = [];
}