this.testAjax = function () { $http.post("~/Home/About"). success(function (data1) { if (data1 == "True") { } else { } }). error(function (re) { if (re == "True") { } else { } }); };
colorApp.controller('Home', function ($scope,$http) { $http({ url: '/Home/About', method: 'GET' }).success(function (data, status, headers, config) { $scope.color = data; });
var ResponseObj = $http.get("/home/Index"); ResponseObj.success(function (data) { }); $http.post(), $http.put(), $http.post(), $http.delete() $http.head()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)