TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jayanth Reddy
NA
250
9.9k
how to perform post operation for only attendance property
May 28 2020 12:14 AM
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[];
}
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.
Reply
Answers (
3
)
Ng serve command gives error
design ecommerce database in mongoDB.