From 80088382b5379bd1601b62835766f9042eae7ae0 Mon Sep 17 00:00:00 2001 From: onsaliyo Date: Fri, 14 May 2021 09:58:48 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1adida=20pagina=20para=20ver=20discoteca?= =?UTF-8?q?=20desde=20cliente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../view-discoteca-cliente.page.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts index 02d4214..221d5ec 100644 --- a/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts +++ b/src/app/view-discoteca-cliente/view-discoteca-cliente.page.ts @@ -1,4 +1,7 @@ import { Component, OnInit } from '@angular/core'; +import { DiscotecaI } from '../interfaces/discoteca-i'; +import { Eventoi } from '../interfaces/eventoi'; +import { FeedService } from '../services/feed.service'; @Component({ selector: 'app-view-discoteca-cliente', @@ -7,9 +10,18 @@ import { Component, OnInit } from '@angular/core'; }) export class ViewDiscotecaClientePage implements OnInit { - constructor() { } + discoteca: DiscotecaI + eventos: Eventoi[] + + constructor(private feedService: FeedService) { } ngOnInit() { + this.discoteca = this.feedService.discotecaEvento; + this.feedService.eventos.forEach(evento => { + if (this.discoteca.discotecaID == evento.discotecaID){ + this.eventos.push(evento); + } + }) } }