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'}
})
}]);
Formulário:
<form ng-submit="submitForm()">
...
</form>
Erro:
O que pode estar causando esse erro?