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
Sujeet Raman
864
927
352.9k
How to add items in json data object while sending to DB
Dec 6 2017 4:56 AM
i need to upload abulk data of jsonobject.In service .ts i need to add extraa 4 more values to that object.In body ineed to get this values to save how can i append these 4 values to body
my service.ts
**************
SaveData(uploaddata: any) {
//this four data i need to add to the object "body"
// ID":ID,
// "CreatedBy": "",
// "CreatedOn": "",
// "UpdatedBy": "",
// "UpdatedOn": ""
/
let body = JSON.stringify(uploaddata)
console.log(body)
let headers = new Headers({
'Content-Type':
'application/json; charset=utf-8'
});
let options = new RequestOptions({ headers: headers });
return this._http.post(this.Savecsv, body, options)
.map(res => <data>res.json())
.catch(this.handleError);
}
Reply
Answers (
2
)
update and add new row is not working in angular 4
my computer system typescript is install but not show .