se tiene la discoteca asociada a los eventos en Feed y view Evento Cliente

This commit is contained in:
2021-05-13 17:47:34 +02:00
parent 3c2976437d
commit 59f0fcc724
5 changed files with 48 additions and 2 deletions

View File

@@ -21,6 +21,11 @@
{{evento.descripcion}}
</div>
</ion-row>
<ion-row>
<div class="discotecaEvento">
{{discoteca?.nombre}}
</div>
</ion-row>
</div>
</ion-grid>
</ion-content>

View File

@@ -1,4 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { DiscotecaI } from '../interfaces/discoteca-i';
import { Eventoi } from '../interfaces/eventoi';
import { FeedService } from '../services/feed.service';
@@ -10,10 +11,12 @@ import { FeedService } from '../services/feed.service';
export class ViewEventoClientePage implements OnInit {
evento: Eventoi;
discoteca: DiscotecaI;
constructor(private feedService: FeedService) { }
ngOnInit() {
this.evento = this.feedService.getEventoByIndex(this.feedService.eventoIndex);
this.discoteca = this.feedService.discotecaEvento;
}
}