voilĂ  la solution:

********le service: 
.factory('Indexmetadata', ['$resource', function ($resource) {

        return $resource('http://localhost:8080/document/indexMeta', {}, {
            'update': {method: 'POST'}
        })
    }]);


********le controller:

.controller('FactureCtrl', function ($scope,Indexmetadata) {


       $scope.document="test";

        $scope.indexMeta = function () {

          Indexmetadata.update({meta : $scope.document});


        }
        });




-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to