What is the best way to integrate Laravel with angular 2?

0

I know how to create an application using Laravel, and I also know how to create an application using Angular 2/4. But how to integrate the 2? would it be just creating a Laravel API and another Angular application? or do I have to create the Angular project inside the Public folder of the laravel project?

    
asked by anonymous 02.05.2017 / 23:37

1 answer

0

It will depend on how you will structure your project, what it will do, how much interaction it will have. For a medium / large project it is good to use the public folder and separate it in the same way that separates models and controllers from laravel (without using the ng-router). Small design to do separate is not a bad idea. But it still depends on whether it will be done with distribution to various media (the same api used for the site to be used in a mobile application).

    
03.05.2017 / 00:06