As shown below:
ng-model="name" //Submit the data filled in to
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <script src=""></script> </head> <body> <div ng-app="module" ng-controller="ctrl"> //Form form submission <form action="" method="post"> <input type="text" name="title" ng-model="name"> {{name}} <input type="submit"> </form> </div> <script> var m = ('module', []); ('ctrl', ['$scope', function ($scope) { $ = 'Lingling on the road'; }]); </script> </body> </html>
<?php print_r($_POST);
The above method of submitting text box data to the background of angularJs is all the content I share with you. I hope you can give you a reference and I hope you can support me more.