I am developing sample app to learn the angularjs
using node.js
. when i post the data to backend to create a new family
i am getting error as :
Error: $http:badreq
Bad Request Configuration
Http request configuration url must be a string. Received:
{
"method":"POST",
"url":"api/family",
"data": {
"username":"fagruddin",
"password":"valaanur",
"familyLeader":"fagruddin",
"husband":"fagruddin",
"wife":"rejiya",
"child":2
},
"headers":{
"Content-Type":"application/x-www-form-urlencoded"
}
}
what is wrong here? any one help me to solve this?
Live Demo for your reference