In the targetData array, objects has properties("january",etc ) are taken from source array.... I am unable to transform sourceEvents to TargetData array.
var sourceEvents =[
{
"title": "Course Tile1",
"details": "Webex| Advanced",
"month": "January"
},
{
"title": "Course Tile1",
"details": "Webex| Advnced",
"month": "february"
},
{
"title": "Course Tile1",
"details": "Webex| Advnced",
"month": "febrary"
}];
var TargetData =[
{"january":
[
{
"title": "Course Tile1",
"details": "Webex| Advanced"
},
{
"title": "Course Tile2",
"details": "Webex| Advanced",
}
]
},
{ "Feb":[
{
"title": "Course Tile3",
"details": "Webex| Advanced"
},
{
"title": "Course Tile4",
"details": "Webex| Advanced"
}]
}
]
I need to use ng-repeat to loop the resulting array.