añadida pagina para ver discoteca desde cliente

This commit is contained in:
onsaliyo 2021-05-14 09:58:48 +02:00
parent dc04cd122f
commit 80088382b5
1 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,7 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { DiscotecaI } from '../interfaces/discoteca-i';
import { Eventoi } from '../interfaces/eventoi';
import { FeedService } from '../services/feed.service';
@Component({ @Component({
selector: 'app-view-discoteca-cliente', selector: 'app-view-discoteca-cliente',
@ -7,9 +10,18 @@ import { Component, OnInit } from '@angular/core';
}) })
export class ViewDiscotecaClientePage implements OnInit { export class ViewDiscotecaClientePage implements OnInit {
constructor() { } discoteca: DiscotecaI
eventos: Eventoi[]
constructor(private feedService: FeedService) { }
ngOnInit() { ngOnInit() {
this.discoteca = this.feedService.discotecaEvento;
this.feedService.eventos.forEach(evento => {
if (this.discoteca.discotecaID == evento.discotecaID){
this.eventos.push(evento);
}
})
} }
} }