hi guys i m new in ionic 2,
i hv created a calendar. now i want to load value in calendar by calling api
my API returns this type of value
[
{
"strAttendanceDate": "31-Jul-2017",
"SubjectID": 672,
"Present": 197,
"Absent": 100,
},
{
"strAttendanceDate": "01-Aug-2017",
"SubjectID": 672,
"Present": 1,
"Absent": 296
},........,.......
]
now i want to load present and absent value in calendar date wise
help me how to do load this in calendar
this is i how i created the calender
<calendar [eventSource]="eventSource"
[calendarMode]="calendar.mode"
[currentDate]="calendar.currentDate"
(onCurrentDateChanged)="onCurrentDateChanged($event)"
(onEventSelected)="onEventSelected($event)"
(onTitleChanged)="onViewTitleChanged($event)"
(onTimeSelected)="onTimeSelected($event)"
step="30">
</calendar>