I have one Leave List table with json data.
var app=angular.module('myApp',[])
app.controller('myController', ['$scope', '$http', function ($scope, $http) {
$scope.init = function () {
$scope.holidayList=[
{
'month':'JAN',
'date':01,
'day': 'Mon',
'occasion':'New Year'
},
{
'month':'FEB',
'date': 03,
'day': 'Fri',
'occasion':'Maha Shivaratri'
}
];
}
}])
https://jsfiddle.net/856fysen/2/
Here I need to display multiple leaves in single month,for that I have changed my json like this
$scope.holidayList=[
{
'month':'JAN',
'date':[01,07,20],
'day': ['Mon','Fri','Sun'],
'occasion':['New Year','pongal','bhogi']
},
{
'month':'FEB',
'date': 03,
'day': 'Fri',
'occasion':'Maha Shivaratri'
}
];
Is it correct?