C
C
Costa Concordia2015-10-27 12:01:48
JavaScript
Costa Concordia, 2015-10-27 12:01:48

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

2 answer(s)
B
bromzh, 2015-10-27
@bromzh

https://docs.angularjs.org/api/ngResource/service/... Generates
CRUD methods automatically

A
Andrew, 2015-10-27
@R0dger

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 question

Ask a Question

731 491 924 answers to any question