Answer the question
In order to leave comments, you need to log in
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');
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question