WordPress Settings API using angularJS

i’m trying to update WordPress General Settings page with AngularJS with a $http.post

$scope.update = function(genSet){
       $scope.generalSettings = angular.copy(genSet);
       $http.post('options-general.php', JSON.stringify($scope.generalSettings)).then(function (response) {
          alert("success");
          console.log($scope.generalSettings);                        
       }, function (response) {                 
          alert("fail");                                             
       });                            
       }

The form itself is composed of two input fields with the same name as those in options-general.php

The form posts and the response is successful, though the settings page itself doesn’t change.

Am i missing something here?

Go to Source
Author: Alexandru Andrei