BackEnd #3

Merged
onsaliyo merged 11 commits from BackEnd into master 2021-03-31 13:01:27 +02:00
4 changed files with 13 additions and 1 deletions
Showing only changes of commit b9d95793dc - Show all commits

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

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

View File

@ -43,7 +43,7 @@ export class Discoteca {
this.descripcion = desc;
}
get Descripcion(): string{
getDescripcion(): string{
return this.descripcion;
}
}

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 = [];
}