// Paramteres for the input type are defined below. The url is generated using `json-server`.
// Please run your own instance of the json-server to use the the below url.
selectedMonth:string="apr"
selectedyear:string="2020"
myAttData=[
{
"year":"2020",
"month":"apr",
"data":[
{
"date":1,
"status":"present"
},
{
"date":2,
"status":"abscent"
},
{
"date":3,
"status":"present"
},
{
"date":4,
"status":"woff"
},
{
"date":5,
"status":"woff"
},
{
"date":6,
"status":"present"
},
{
"date":7,
"status":"present"
},
{
"date":8,
"status":"present"
},
{
"date":9,
"status":"present"
},
{
"date":10,
"status":"present"
},
{
"date":11,
"status":"woff"
},
{
"date":12,
"status":"woff"
},
{
"date":13,
"status":"req"
}
]
}
];
constructor(){}
ngOnInit(){
}
}
Running the example in local env
npm i
Run ng serve for a dev server and running the demo app. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Build the NgxAttendanceLibrary module
Run ng build NgxAttendanceLibrary to build the library. The build artifacts will be stored in the dist/ngx-attendance-library directory. Use the --prod flag for a production build.
Running unit tests
Run ng test NgxAttendanceLibrary to execute the unit tests via Karma.
Credits
This project is based on Ngx-Attendance-Calendar. I want to thank entire Angular team for creating this awesome framework.