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); + } + }) } }