Hi, I want to use Angular for frontend app and Laravel API for backend service, and so I wanted to know what would be an ideal approach for this type of system.
Would it be better to have single page application with Angular routing and populate information to the page using GET request.
OR
Use Laravel routing to have separate pages and use Angular for the interaction for the UI itself.
Security is my main concern as I only want Angular to be able to access my API endpoints.
Thanks
https://scotch.io/tutorials/create-a-laravel-and-angular-single-page-comment-application
https://scotch.io/tutorials/build-a-time-tracker-with-laravel-5-and-angularjs-part-1 https://scotch.io/tutorials/build-a-time-tracker-with-laravel-5-and-angularjs-part-2
I think it was the best approach of I know. Hope it helps.
yes a good start, but there are a few things not quite right.
the retrieving of the data out of the database via RestFULL API gives wrong Angular DateTime (solved with last post)
the sending of update or store via PUT is not working, think input is NULL or again DATETIME isue...
otherwise all links in the post of "appkr" are nice en very good readable.
Hope someone can help me with second (2) isue, first (1) isue i solved.
Have you tried using ngResource? It has all the REST methods available so you basically just give it an endpoint and data.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community