Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to integrate Laravel 5.4 with Angular 4

I know how to create full Laravel 5.4 project by its own and also I know how to create SPA using Angular 4.

Problem:

I don't know how to integrate Laravel with Angular.

Also, I want to use Laravel 5.4 as the back-end and Angular 4 as the front-end.

like image 643
user7677025 Avatar asked Apr 19 '17 11:04

user7677025


1 Answers

You can create two projects :

  • Laravel project which provides some api's endpoint and return some json responses.
  • Angular project which calls the Laravel api in ajax and update the DOM in your front SPA with the responses.
like image 145
Kyllian Vinkler Avatar answered Oct 02 '22 16:10

Kyllian Vinkler