you can use $http.post shortcut method