0
Script:
app = angular.module("app",[]);
app.controller("controlador", ["$scope", function($scope, $http){
$scope.items = [];
$scope.submitForm = function() {
// Posting data to php file
$http({
method : 'POST',
url : 'http://localhost/nfe/admin/nfephp-master/exemplos/NFe/4.00testaMakeNFe.php',
data : $scope.items, //forms user object
headers : {'Content-Type': 'application/x-www-form-urlencoded'}
})
}]);
Form:
<form ng-submit="submitForm()">
...
</form>
Error:
What could be causing this error?