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

Asked

Viewed 241 times

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 be just creating an Laravel API and another Angular application? or have to create the Angular project within the Public folder of the Aravel project?

1 answer

0


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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.