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

View File

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