E
E
Eugene Zalivadnyi2015-10-24 01:09:53
Angular
Eugene Zalivadnyi, 2015-10-24 01:09:53

Where is form data sent and where is it written in Angular?

Good day. There is a project on Angular + Laravel. I'm new to both.
I'm trying to understand where the data from the form is sent and where it is written, I need to make minor changes to the request.
<form ng-submit="update()">
I did not find any explicit manipulations in the database in Lara controllers. In search, I settled on the Angular controller:

this.update = function(gameId, params){
        var game = Restangular.copy(params);

        game.route = 'game/';

        return game
            .put()
            .then(function(){
                $rootScope.$broadcast('game.updated');
        });
    }

Please, chew where to dig further?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VanKrock, 2015-10-24
@VanKrock

game.put () as I understand it, there is an explicit sending of data by Larael to the database, via route "game /"
and where they are written in Angular, this is not in the piece of code you provided.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question