Can anyone please suggest that what is the best and preferred way to integrate AngularJs2 with Yii2 PHP Framework. I am unable to find clear steps.
I want Angular2 as Fronted and Yii2 as Backend.
Can anyone please suggest that what is the best and preferred way to integrate AngularJs2 with Yii2 PHP Framework. I am unable to find clear steps.
I want Angular2 as Fronted and Yii2 as Backend.
You can use the Angular2 for templating and everything on the frontend. And use its provided Http function to call for REST Api end point.
By doing this approach you are required to write everything again on your PHP framework.
In verbose explanation. Just request for data in
PHPusing http request then parse the returnedJSONof the PHP framework.
So they talk only through API calls.