I need to send the form's input collection to the MVC controller method (C #) by means of an ajax request from an Angular controller, the problem is that the FormCollection arrives empty to the controller. p>
How can I send the serialized form using angularJS?
It's a view with dynamically generated controls and I do not use a ViewModel I need the FormControll collection.
<input="button" ng-click="submit()" />
//submit Angular controlador:
$scope.submit = function () {
$http({
url: '/Tickets/Update',
method: "POST",
data: --> aqui el formulario serializdo JSON
})
.success(function (data, status, headers, config) {
}).error(function (data, status, headers, config) {
});
}
Thanks