M
M
Mikhail Moskalev2014-03-18 18:55:41
Angular
Mikhail Moskalev, 2014-03-18 18:55:41

Where can I find an example of submitting a form in angularjs?

Where can I see examples of submitting a form in Angular?

The problem is serializing the form without using jquery and accessing the DOM element.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-03-18
@Mr_Franke

For the serialization of data transmitted through the $http service, it also provides the ability to set your own request handlers . In it, you can change the headers and body of any request.
Usually, developers don’t bother and send the request body to the server in json, but if for some reason you need to send regular POST data, then I recommend node-querystring . Luckily, it works in the browser too.

A
Alexander Khirenko, 2014-03-18
@Satanpit

And what exactly is the problem, use ngSubmit and work with the data in the controller.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question