I have a problem with get data to the client using httpClient in my web app. when i check server everything is ok in Postman , but client in angular return empty object. thats my ICalendar interface:
export interface ICalendar {
  calendarName: string;
  userId: number;
  training: Array<{
    trainingTittle: string;
    date: string;
    excercises: Array<{
      excerciseName: string,
      numOfRepeat: number
   }>
  }>;
}
and thats how i get data in service:
 export class CalendarService {
  constructor(private http: HttpClient) { }
  public getAllTrainings() {
    return this.http.get<ICalendar[]>('https://localhost:5001/api/calendar');
  }
and thats how call method looks like:
  ngOnInit(): void {
this.calendarService.getAllTrainings()
  .subscribe(data => {
    this.trainings = data;
  });
console.log(this.trainings);
but log is empty console log of object
and thats how it looks like in database
someone know how to handle it?
 
     
    