I managed to write a code for the http.post method to post the data in the form using AngularJS as following,
app.controller("TodoListController", [\'$