$scope.sendContact = function() {
var contact_data = {
first_name: this.contact.first_name,
last_name: this.contact.last_name,
phone: this.contact.phone,
email: this.contact.email,
message: this.contact.message,
reason: this.contact.reason.id
};
$http({
method : "POST",
url: apiDomain + contentPath + "contact.php",
data: contact_data
}).then(function mySucces(response) {
$scope.result = response.data;
}, function myError(response) {
alert(response.statusText);
});
}