$scope.save = function() {
    $http({
    method: 'POST',
    header: {'Content-Type': 'application/x-www-form-urlencoded'},
    url: './assets/json/attributes.json',
    data: $scope.attr,

    })

Should I not be able to push data into a JSON file? Granted, I cannot 
create a new file, but updating data in an existing one, is not possible 
either?

On Monday, November 10, 2014 4:32:11 PM UTC+1, Sander Elias wrote:
>
> Hi Kasper,
>
> You need to handle the saving part on the server side. Angular is pure 
> front-end. 
> Can you show me the code you use to send the data back to the server, 
> perhaps I can then help you.
>
> Regards
> Sander
>

-- 
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