Post form data to server in AngularJs
Simple tip to send your form data to server using angular js and get that data in $_POSTÂ variable <html> <head> <meta charset=”utf-8″> <meta http-equiv=”X-UA-Compatible” content=”IE=edge”> <meta name=”viewport” content=”width=device-width, initial-scale=1″> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script> <script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js”></script> <script type=”text/javascript”> var app = angular.module(“myApp” , []); app.controller(“sendForm” , function($scope, $http){ $scope.saveData= function(){ $scope.signError = false; $scope.signSuccess = false; var request […]
Continue Reading