Home > Mobile >  Is there a way to communicate angular component with native php backend ( not rest api )
Is there a way to communicate angular component with native php backend ( not rest api )

Time:04-19

I'm currently working on a migration of a project that is developed with native PHP, HTML, js to a new technology Angular The client asks if there is a possibility to create a list of components that somehow can communicate and fetch data with the existing backend ( native PHP )

CodePudding user response:

Since angular is a client-side and PHP is a server-side, the only way to communicate both is using requests or websockets

You can create a server API that exposes the required logic to be used by client, and a service in your angular application that implements the requests to that API. Then any component could use that service to perform the requests

  • Related