+ 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

5th Jun 2018, 7:39 PM
Ali Khatab
Ali Khatab - avatar
6 odpowiedzi
+ 3
Nope
5th Jun 2018, 11:21 PM
Mickel
Mickel - avatar
+ 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
5th Jun 2018, 10:20 PM
Mickel
Mickel - avatar
+ 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.
5th Jun 2018, 11:01 PM
Mickel
Mickel - avatar
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.
5th Jun 2018, 7:45 PM
Bebida Roja
Bebida Roja - avatar
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?
5th Jun 2018, 10:53 PM
Ali Khatab
Ali Khatab - avatar
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?
5th Jun 2018, 11:20 PM
Ali Khatab
Ali Khatab - avatar