Se pueden ver eventos desde usuario cliente. Hay código (algo) duplicado

This commit is contained in:
2021-05-12 18:16:12 +02:00
parent 277ad1d88a
commit 4aa238ab9e
11 changed files with 136 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ import { ApiService } from './api.service';
export class FeedService {
eventos: Eventoi[];
eventoIndex: number;
constructor(private apiService: ApiService, private router: Router) { }
@@ -19,4 +20,10 @@ export class FeedService {
this.router.navigate(['/tabsUser'])
})
}
getEventoByIndex(eventoIndex: number):Eventoi{
return this.eventos[eventoIndex];
}
}