How to send data from a form generated by the Ionic Framework to a PHP file and return a JSON?

1

I've been following the Ionic Framework documentation and viewing tutorials on the internet, but there's no detail communicating with the server. I would like to send form data and receive information via JSON. Could you post a simple example of how to submit data to the PHP script? For example: name, email, and phone. I think this will help everyone who is entering the framework.

    
asked by anonymous 26.10.2016 / 14:20

1 answer

1

You could be using $ http of the angular itself to send this data, and in php returns the json.

link $ http

link to the $ http documentation, there are some examples of usage

    
27.10.2016 / 15:46