Answer the question
In order to leave comments, you need to log in
How to implement crud users on the front-end, in angular?
The backend is ready, there is documentation, I need to send a request to the server through the service. Are there examples of implementation?
Answer the question
In order to leave comments, you need to log in
https://docs.angularjs.org/api/ngResource/service/... Generates
CRUD methods automatically
You take the usual POST and send AJAX to the server for writing .. it seems there is nothing military ...
if you are talking about the fact that angular initially transmits not a form, then in PHP you can take something like this at the input ..
an example for yii
public function actionSave () {
$request = CJSON::decode(file_get_contents('php://input'));
if ($request) {
echo CJSON::encode(Brands::saveModel($request));
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question