- export interface EmpAttendence {
- date: Date;
- AttendanceValue: string;
- }
- import { EmpAttendence } from './attendance.model';
- export interface Employee {
- id: number;
- Name: string;
- Gender: string;
- Email?: string;
- phoneNumber?: number;
- ContactPreference: string;
- DateOfBirth: Date;
- Department: string;
- IsActive: boolean;
- PhotoPath?: string;
- present?: boolean;
- leave?: boolean;
- holiday?: boolean;
- Attendance?: EmpAttendence[];
- }
How to perform post operation for only attendance property
Above are model of my employee object.I have performed the get,post put and delete operations successfully.Now after performing post operation(i.e, after creating employees) i want to take their attendance by picking date from datepicker.Can someone help me how to insert values into the specific property(only attendance property) of existing employee. Forgive me if my question is wrong.I am struggling from lot of time.

Piyush PansuriyaRank #454 · 5.5K reputationPosted May 28, 2020, 8:39 PM EDT
Piyush PansuriyaRank #454 · 5.5K reputationPosted May 27, 2020, 10:49 PM EDT
Jayanth ReddyRank #8,652 · 218 reputationPosted May 27, 2020, 11:54 PM EDT