From b9d95793dc3371f388314d309aee9d456d204121 Mon Sep 17 00:00:00 2001 From: onsaliyo Date: Sun, 21 Feb 2021 12:21:18 +0100 Subject: [PATCH] =?UTF-8?q?a=C3=B1adida=20interfaz=20discoteca?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/discoteca-i.ts | 2 ++ src/app/discoteca.ts | 2 +- src/app/perfil-discoteca/perfil-discoteca.page.ts | 5 +++++ src/app/tab1/tab1.service.ts | 5 +++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/app/discoteca-i.ts diff --git a/src/app/discoteca-i.ts b/src/app/discoteca-i.ts new file mode 100644 index 0000000..522adda --- /dev/null +++ b/src/app/discoteca-i.ts @@ -0,0 +1,2 @@ +export interface DiscotecaI { +} diff --git a/src/app/discoteca.ts b/src/app/discoteca.ts index 4ba5387..8114e04 100644 --- a/src/app/discoteca.ts +++ b/src/app/discoteca.ts @@ -43,7 +43,7 @@ export class Discoteca { this.descripcion = desc; } - get Descripcion(): string{ + getDescripcion(): string{ return this.descripcion; } } diff --git a/src/app/perfil-discoteca/perfil-discoteca.page.ts b/src/app/perfil-discoteca/perfil-discoteca.page.ts index deeaeb9..f87e339 100644 --- a/src/app/perfil-discoteca/perfil-discoteca.page.ts +++ b/src/app/perfil-discoteca/perfil-discoteca.page.ts @@ -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; } diff --git a/src/app/tab1/tab1.service.ts b/src/app/tab1/tab1.service.ts index c07d3c7..8bb4d48 100644 --- a/src/app/tab1/tab1.service.ts +++ b/src/app/tab1/tab1.service.ts @@ -56,6 +56,11 @@ export class Tab1Service implements OnInit{ return this.eventos; } + getDescripcion(): string{ + this.initValues(); + return this.discoteca.getDescripcion(); + } + initEventos(): void{ this.eventos = []; }