Indeed, some pages of this website need to offer some features that need to be dynamic and asynchronous. As I did not find a lot of information on the Internet about this topic, and also because kind of struggled with the implementation, I thought it was an information worth sharing.
In this article, I will explain step by step how to develop a (very) basic Laravel project that include an Angular application.
As of now, here is our project tree: In order to remain simple, we will create only three components: I assume here that you know how to create a component.
On Laravel side, deploy the server with artisan: On Angular side, we will first need to update the angular.json file: Otherwise, you will notice these kinds of errors in your browser console: You won’t encounter those errors in any other environment as the Angular app will not be served.