Skip to content

Commit

Permalink
docs: adding debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
ijz953 committed Mar 13, 2019
1 parent 63adf95 commit 77dcca7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ export class EventListComponent {
}

constructor(private eventService: EventService) {
console.log('hello2');
this.eventService.events.subscribe(value => {
console.log('hello3' + value);
const displayEvents: DisplayEvent[] = value.map(event => {
const startDate = event.startDate ? new Date(event.startDate) : undefined;
const endDate = new Date(event.endDate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export class EventService {
events: Observable<Event[]>;

constructor(private http: HttpClient) {
console.log('here');
this.events = this.getEvents();
}

Expand Down

0 comments on commit 77dcca7

Please sign in to comment.