+ 1
How could I use angular as front end and php as back end
I want to use angular as front end to make the ui and php as back end to do the server work but I dont now what to do
6 ответов
+ 3
Nope
+ 2
Create your UI normally next to your drivers and modules. And you use PHP to return the results of the server through the controller.
Note that you must return the results in JSON.
Here is an example of this:
https://www.w3schools.com/angular/angular_sql.asp
+ 2
Certainly, you can not write the code in the index of the page. You need to do it in a different file, and specify the route to make the request in your controller.
0
Just make the website. If you know how to program using angular and php you should be able to interlace the knowledge of both to make your favorite website. Off topic: The idea is key.
0
what about php code I cant write it in the files its index.html. should I change them to index.php and so change the route at angular would it work fine?
0
I know I ment if I have component for example (menu) there's menu.component.html can I change it to (.php) and write my code?