permite ver fotos de la galería en grande
This commit is contained in:
@@ -2,8 +2,8 @@ import { Injectable, OnInit } from '@angular/core';
|
||||
import { stringify } from 'querystring';
|
||||
import { Tab1Page } from './tab1.page'
|
||||
import { Discoteca } from '../discoteca'
|
||||
import { Galeria } from '../galeria';
|
||||
import { Evento } from '../evento';
|
||||
import { FormControl, FormGroup } from '@angular/forms';
|
||||
import { NumericValueAccessor } from '@ionic/angular';
|
||||
|
||||
|
||||
@@ -13,9 +13,11 @@ import { NumericValueAccessor } from '@ionic/angular';
|
||||
export class Tab1Service implements OnInit{
|
||||
|
||||
discoteca: Discoteca;
|
||||
galeria: Galeria;
|
||||
galeria: string[];
|
||||
eventos: Evento[];
|
||||
eventoForms: FormGroup[];
|
||||
eventoIndex: number;
|
||||
editarEvento: boolean;
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -30,9 +32,9 @@ export class Tab1Service implements OnInit{
|
||||
this.discoteca.setNombre('Barraca');
|
||||
this.discoteca.setTelefono(666666666);
|
||||
this.discoteca.setLocalizacion('Calle del Barquillo');
|
||||
this.galeria = new Galeria();
|
||||
this.galeria = [];
|
||||
this.initEventos();
|
||||
this.galeria.setDiscoteca(this.discoteca.getNombre());
|
||||
this.editarEvento = false;
|
||||
}
|
||||
|
||||
getNombre(): string{
|
||||
@@ -58,6 +60,10 @@ export class Tab1Service implements OnInit{
|
||||
this.eventos = [];
|
||||
}
|
||||
|
||||
initEventoForms(): void{
|
||||
this.eventoForms = [];
|
||||
}
|
||||
|
||||
getEventobyIndex(eventoIndex: number){
|
||||
return this.eventos[eventoIndex];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user