How to integrate Laravel 5.4 with Angular 4

I know how to create a complete Laravel 5.4 project myself, and also I know how to create a SPA using Angular 4 .

Problem:

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

In addition, I want to use Laravel 5.4 as the back-end and Angular 4 as the interface.

+6
source share
3 answers

You can create two projects:

  • A Laravel project that provides some api endpoint and returns some json responses.
  • Angular project that crashes the Laravel api and updates the DOM in your front SPA with answers.
+7

laravel 5.4 Angular 4 Angular Cli

Laravel 5.4 Angular 4.3.4

0

Source: https://habr.com/ru/post/1016628/


All Articles