As with applications on angulare to perform a get request on the action Yii2 and get a response?

Good day!

1. To build all communication between client and server angulare on yii2 restful via the API or client can make a request for any usual controller/action and get a response?

2. If the first question answer is Yes, as with the client to perform get requests to an action in yii and get answers.

Objective to work with a model in yii2. Did the implementation on the client but would be more correct to do it on the server. But I can't figure out how can I pass through the rest of get parameters and get answers.

Thank you.
July 8th 19 at 15:51
3 answers
July 8th 19 at 15:53
Angular the http module implement working with REST requests
July 8th 19 at 15:55
See the series of articles. Just your case.
Yii2: Simple c application with AngularJS frontend
July 8th 19 at 15:57
Campaign case any more questions:
1. Is it possible to make the client part of the application template Yii, to be able to use a normal controller and action yii, not only restful API.
2. Whether has sense to pass from the client to the server, gets a query from the current url to work with the model , if the url I get agulara $location.search(); As I understand it, it's easier to do everything on the client in terms of app performance.

Find more questions by tags AngularYii