Select Git revision
history.component.ts
-
B Harsha Vardhan authoredB Harsha Vardhan authored
history.component.ts 563 B
import { Component, OnInit } from '@angular/core';
import { eventDetails } from '../contracts/eventDetails';
import { EventServiceService } from '../services/event-service.service';
@Component({
selector: 'app-history',
templateUrl: './history.component.html',
styleUrls: ['./history.component.scss']
})
export class HistoryComponent implements OnInit {
constructor(private eventService:EventServiceService) { }
userName="Rohini"
ngOnInit() {
this.eventsAttended=this.eventService.getPastEvents();
}
eventsAttended:eventDetails[]=[];
}