Can someone explain to me which is the best way to use angular and laravel. How to show templates (Laravel View or Angular routing)? Can i use angular for my web site like jquery or just for api? Thanks. Cheers!
You can put your views in the public folder (maybe create a template folder), then create an api routes to routes.php, then make a request on that. You can create javascript services to read data on the api.
You can read about how to integrate Laravel 5 and AngularJS here CodeTutorial. There is 2 tutorial, one about rendering angular app inside the Laravel template and one where angular route is used also to create a template.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community